private SpiMetaQuery newsetupByVisitingTree(String query, String targetTable, MetaLoader mgr, String errorMsg) {
try {
return newsetupByVisitingTreeImpl(query, targetTable, mgr, errorMsg);
} catch(ParseQueryException e) {
String msg = errorMsg+" failed to parse. Specific reason="+e.getMessage();
throw new ParseException(msg, e);
} catch(RuntimeException e) {
throw new ParseException(errorMsg+" failed to compile. See chained exception for cause", e);
}
}