try { Field f = FieldFinder.find(attr); GroupValidator.isTypeEqual(f, FieldType.ATTRIBUTE); if (!this.hasType( f.getGroupType() ) ) { throw new SchemaException( "group does not have group type: " + f.getGroupType().toString() ); } GroupValidator.canReadField( this, this.getSession().getSubject(), f ); } catch (InsufficientPrivilegeException eIP) { throw new AttributeNotFoundException(eIP); } catch (SchemaException eS) { throw new AttributeNotFoundException(eS); } String val = this._getAttributeNoPrivs(attr); if (val == null) { return GrouperConfig.EMPTY_STRING; } return val;
GroupValidator.canGetAttribute(this, attr); return this._getAttributeNoPrivs(attr);
  public String getAttribute(String attr)     throws  AttributeNotFoundException  {    try {      Field f = FieldFinder.find(attr);      GroupValidator.isTypeEqual(f, FieldType.ATTRIBUTE);      if (!this.hasType( f.getGroupType() ) ) {        throw new SchemaException(          "group does not have group type: " + f.getGroupType().toString()        );      }      GroupValidator.canReadField(        this, this.getSession().getSubject(), f      );    }    catch (InsufficientPrivilegeException eIP) {      throw new AttributeNotFoundException(eIP);    }    catch (SchemaException eS) {      throw new AttributeNotFoundException(eS);    }    String val = this._getAttributeNoPrivs(attr);    if (val == null) {      return GrouperConfig.EMPTY_STRING;    }    return val;  } // public String getAttribute(attr)