String msg = "unable to add field: " + name + ": " + eS.getMessage(); LOG.error(msg);
String msg = E.GROUPTYPE_FIELDADD + name + ": " + eS.getMessage(); ErrorLog.error(GroupType.class, msg);
  private Field _addField(      GrouperSession s, String name, FieldType type, Privilege read,       Privilege write, boolean required  )    throws  InsufficientPrivilegeException,            SchemaException  {    Field     f   = null;    StopWatch sw  = new StopWatch();    sw.start();    Validator.canAddFieldToType(s, this, name, type, read, write);    try {      boolean nullable = true;      if (required == true) {        nullable = false;      }      Set fields = this.getFields();      f = new Field(name, type, read, write, nullable);      fields.add(f);      this.setFields(fields);      HibernateHelper.save(this);      sw.stop();      EL.groupTypeAddField(s, this.getName(), name, sw);      return f;    }    catch (HibernateException eS) {      String msg = "unable to add field: " + name + ": " + eS.getMessage();      LOG.error(msg);      throw new SchemaException(msg, eS);    }  } // private void _addField(s, name, type, read, write, required)