mongo method added to glassfish