}
rootIndexedEntities.add( mappedXClass );
indexingHierarchy.addIndexedClass( mappedClass );
}
else if ( metadataProvider.containsSearchMetadata( mappedClass ) ) {
//FIXME DocumentBuilderIndexedEntity needs to be built by a helper method receiving Class<T> to infer T properly
//XClass unfortunately is not (yet) genericized: TODO?
TypeMetadata typeMetadata = metadataProvider.getTypeMetadataFor( mappedClass );
final DocumentBuilderContainedEntity<?> documentBuilder = new DocumentBuilderContainedEntity(