if (s.type.equals(SubjectTypeEnum.valueOf("group"))) {
if (s.type.equals("group")) {
  private static GrouperSession _getSession(Subject subj)     throws  MemberNotFoundException  {    GrouperSession s = new GrouperSession();    // Transient    s.subj  = subj;    s.who   = subj.getId();    s.type  = subj.getType().getName();    if (s.type.equals(SubjectTypeEnum.valueOf("group"))) {      s.who = subj.getName();    }    // Persistent    s.setMember_id(MemberFinder.findBySubject(subj));    s.setStart_time( new Date() );    s.setSession_id( GrouperUuid.getUuid() );    return s;  } // private GrouperSession(subj) 