code: public boolean authenticate(String username, String password) throws Exception
     {
        Session session = service.getStorageSession();
        try
        {
           return authenticate(session, username, password, null);
        }
        finally
        {
           session.logout();
        }
     }
docs: {@inheritDoc}