String msg = "unable to delete type: " + type + ": " + e.getMessage(); LOG.error(msg);
String msg = E.GROUP_TYPEDEL + type + ": " + e.getMessage(); ErrorLog.error(Group.class, msg);
  public void deleteType(GroupType type)     throws  GroupModifyException,            InsufficientPrivilegeException,            SchemaException  {    Validator.canDeleteGroupType(this.getSession(), this, type);    try {      StopWatch sw    = new StopWatch();      Session   hs    = HibernateHelper.getSession();      Set       types = this.getGroup_types();      types.remove(type);      this.setGroup_types(types);      HibernateHelper.save(this);      hs.close();      sw.stop();      EL.groupDelType(this.getSession(), this.getName(), type, sw);    }    catch (Exception e) {      String msg = "unable to delete type: " + type + ": " + e.getMessage();      LOG.error(msg);      throw new GroupModifyException(msg, e);     }  } // public void deleteType(type)