code: public Membership findMembership(String id) throws Exception
     {
        Session session = service.getStorageSession();
        try
        {
           return findMembership(session, id).membership;
        }
        finally
        {
           session.logout();
        }
     }
docs: {@inheritDoc}