String err = ERR_FAT + eH.getMessage(); LOG.error(err); throw new SchemaException(err, eH);
String msg = E.FIELD_FINDTYPE + eH.getMessage(); ErrorLog.error(FieldFinder.class, msg); throw new SchemaException(msg, eH);
  public static Set findAllByType(FieldType type)     throws  SchemaException  {    Set fields = new LinkedHashSet();    try {      Session hs  = HibernateHelper.getSession();      Query   qry = hs.createQuery(        "from Field where field_type = :type order by field_name asc"      );      qry.setCacheable(GrouperConfig.QRY_FF_FABT);      qry.setCacheRegion(GrouperConfig.QCR_FF_FABT);      qry.setString("type", type.toString());      fields.addAll(qry.list());      hs.close();    }    catch (HibernateException eH) {      String err = ERR_FAT + eH.getMessage();      LOG.error(err);      throw new SchemaException(err, eH);    }    return fields;  } // public static Set fieldAllByType(type)