buildUpCriteria( entityInfos, criteria, maxResults, objectInitializationContext );
setCriteriaTimeout( criteria, objectInitializationContext.getTimeoutManager() );
@SuppressWarnings("unchecked")
List<Object> queryResultList = criteria.list();
InstanceInitializer instanceInitializer = objectInitializationContext.getSearchFactoryImplementor()
.getInstanceInitializer();
for ( Object o : queryResultList ) {
Class<?> loadedType = instanceInitializer.getClass( o );
Object unproxiedObject = instanceInitializer.unproxy( o );
DocumentBuilderIndexedEntity documentBuilder = getDocumentBuilder(
loadedType,
objectInitializationContext.getSearchFactoryImplementor()
);
if ( documentBuilder == null ) {