pathExpressionParser = new PathExpressionParser();
pathExpressionParser.setUseThetaStyleJoin( true ); //TODO: would be nice to use false, but issues with MS SQL
if ( q.isName( StringHelper.root( token ) ) ) {
ParserHelper.parse( pathExpressionParser, q.unalias( token ), ParserHelper.PATH_SEPARATORS, q );
q.appendGroupByToken( pathExpressionParser.getWhereColumn() );
pathExpressionParser.addAssociation( q );
}
else {
q.appendGroupByToken( token );
}