DirectoryProviderFactory factory = new DirectoryProviderFactory();
while ( iter.hasNext() ) {
Class mappedClass = iter.next();
if (mappedClass != null) {
XClass mappedXClass = reflectionManager.toXClass(mappedClass);
if ( mappedXClass != null) {
if ( mappedXClass.isAnnotationPresent( Indexed.class ) ) {
DirectoryProviderFactory.DirectoryProviders providers = factory.createDirectoryProviders( mappedXClass, cfg, this, reflectionManager );
//FIXME DocumentBuilder needs to be built by a helper method receiving Class<T> to infer T properly
//XClass unfortunately is not (yet) genericized: TODO?
final DocumentBuilder<?> documentBuilder = new DocumentBuilder(
mappedXClass, context, providers.getProviders(), providers.getSelectionStrategy(),