Adding the Mongo JNDI factory class to create MongoTemplate through JNDI
Resource.