*
* @param statement
* @return
*/
public String translateToXPath(String statement) {
QueryUtil queryUtil = new QueryUtil();
queryObject = new QueryObject(typeManager);
ParseTreeWalker<XPathBuilder> parseTreeWalker = new ParseTreeWalker<XPathBuilder>(evaluator);
CmisQueryWalker walker = queryUtil.traverseStatementAndCatchExc(statement, queryObject, parseTreeWalker);
walker.setDoFullTextParse(false);
XPathBuilder parseResult = parseTreeWalker.getResult();
TypeDefinition fromType = getFromName(queryObject);
String pathExpression = buildPathExpression(fromType, getFolderPredicate(parseResult));