try { Membership ms = MembershipFinder.findImmediateMembership( this.s, g, this.getSubject(), Group.getDefaultList() ); return true; } catch (MembershipNotFoundException eMNF) { return false; } catch (SubjectNotFoundException eSNF) { return false; }
return this.isImmediateMember(g, Group.getDefaultList());
  public boolean isImmediateMember(Group g) {    try {      Membership ms = MembershipFinder.findImmediateMembership(        this.s, g, this.getSubject(), Group.getDefaultList()      );      return true;    }    catch (MembershipNotFoundException eMNF) {      return false;    }    catch (SubjectNotFoundException eSNF) {      return false;    }  } // public boolean isImmediateMember(g)