public TableInstance resolveByFieldName(String fieldName) throws QueryParsingException { resolvedClass = null; String resolvedAlias = null; for (Iterator it = aliasToTypeInfo.entrySet().iterator(); it.hasNext(); ) { Map.Entry entry = (Map.Entry) it.next(); String alias = (String) entry.getKey(); TypeInfo typeInfo = (TypeInfo) entry.getValue(); if (typeInfo.getColFieldName() != null) { continue; } } if (superContext != null) { TableInstance tblInstance = superContext.resolveByFieldName(fieldName); resolvedClass = superContext.getResolvedClass(); return tblInstance; } throw new QueryParsingException("field {0} not found", new Object[] {fieldName}); }