code: public static Object getFieldValue(final Object object, final Class<?> clazz, final String fieldName) {
          try {
              final Field field = clazz.getDeclaredField(fieldName);
              return getFieldValue(object, field);
          } catch (final Exception e) {
              throw new IllegalArgumentException("Could not get field value: " + fieldName, e);
          }
      }
docs: Get the value of a given field on a given object via reflection.
  
  @param object
  -- target object of field access
  @param clazz
  -- type of argument object
  @param fieldName
  -- name of the field
  @return -- the value of the represented field in object; primitive values
  are wrapped in an appropriate object before being returned