return (Criteria)convertObject(simpleCrit, rootNode, metadata);
}
public static LanguageObject convertObject(LanguageObject object, MappingDocument rootNode, QueryMetadataInterface metadata)
throws QueryPlannerException, TeiidComponentException{
LanguageObject copy = (LanguageObject)object.clone();
//Don't want to do deep visiting
XMLNodeMappingVisitor mappingVisitor = new XMLNodeMappingVisitor(rootNode, metadata);
try {
PreOrderNavigator.doVisit(copy, mappingVisitor);