code: public Collection<Group> getAllGroups() throws Exception
     {
        Session session = service.getStorageSession();
        try
        {
           return findGroups(session, null, true);
        }
        finally
        {
           session.logout();
        }
     }
docs: {@inheritDoc}