code: public static <T> T getFieldValue(Object target, String fieldName) {
          try {
              Field field = target.getClass().getDeclaredField(fieldName);
              field.setAccessible(true);
              @SuppressWarnings("unchecked")
              T returnValue = (T) field.get(target);
              return returnValue;
          } catch (NoSuchFieldException e) {
              throw handleException(fieldName, e);
          } catch (IllegalAccessException e) {
              throw handleException(fieldName, e);
          }
      }
docs: Get target object field value
  
  @param target    target object
  @param fieldName field name
  @param <T>       field type
  @return field value