code: public static Object getField(Field field, Object target) {
          try {
              return field.get(target);
          } catch (IllegalAccessException e) {
              throw new IllegalStateException("Could not access field: " + field, e);
          }
      }
docs: Get the field represented by the supplied {@link Field field object} on the
  specified {@link Object target object}. In accordance with {@link Field#get(Object)}
  semantics, the returned value is automatically wrapped if the underlying field
  has a primitive type.
  
  @param field the field to get
  @param target the target object from which to get the field
  @return the field's current value