code: public static <M> M getFieldValue(Object containingObject, String fieldName, Class<M> fieldClass) {
      return getFieldValue(containingObject.getClass(), containingObject, fieldName, fieldClass);
    }
docs: Returns value of a fieldName in an object.