code: public Collection<MembershipType> findMembershipTypes() throws Exception
     {
        List<MembershipType> types = new ArrayList<MembershipType>();
  
        Session session = service.getStorageSession();
        try
        {
           NodeIterator membershipTypes = utils.getMembershipTypeStorageNode(session).getNodes();
           while (membershipTypes.hasNext())
           {
              MembershipType type = readMembershipType(membershipTypes.nextNode());
              types.add(type);
           }
           Collections.sort(types, MembershipTypeHandler.COMPARATOR);
        }
        finally
        {
           session.logout();
        }
  
        return types;
     }
docs: {@inheritDoc}