code: public static Field []getDeclaredFields(Class<?> cl)
    {
      try {
        return cl.getDeclaredFields();
      } catch (NoClassDefFoundError e) {
        log.finer(e.toString());
        log.log(Level.FINEST, e.toString(), e);
        
        return new Field[0];
      }
    }
docs: /*
  public static boolean hasException(AnnotatedMethod<?> method, Class<?> exn)
  {
  Class<?> []methodExceptions = method.getJavaMember().getExceptionTypes();
  
  for (int j = 0; j < methodExceptions.length; j++) {
  if (methodExceptions[j].isAssignableFrom(exn))
  return true;
  }
  
  return false;
  }