if(pm.getMember().getSubjectId()!=via.getUuid()) {
if(!pm.getMember().getSubjectId().equals(via.getUuid())) {
	public static List getChain(GrouperSession s,Membership m)throws GroupNotFoundException,MembershipNotFoundException,	MemberNotFoundException{		List chain = new ArrayList();		Group via = m.getViaGroup();		chain.add(GrouperHelper.group2Map(s,via));		Membership pm = null;		Group g=null;		pm=m.getParentMembership();		while(pm!=null) {			if(pm.getMember().getSubjectId()!=via.getUuid()) {				g = GroupFinder.findByUuid(s,pm.getMember().getSubjectId());				chain.add(GrouperHelper.group2Map(s,g));				}			try {			pm=pm.getParentMembership();			}catch(MembershipNotFoundException e){break;}		}		return chain;	}