Map<String, Class<?>> entityNames = new HashMap<String, Class<?>>();
entityNames.put( "com.acme.IndexedEntity", IndexedEntity.class );
entityNames.put( "IndexedEntity", IndexedEntity.class );
EntityNamesResolver nameResolver = new MapBasedEntityNamesResolver( entityNames );
return new MongoDBProcessingChain( sessions, nameResolver, namedParameters );
}