Pure java version of my mongo JNDI plugin