code: public static void setFieldValue(final Object object, final Class<?> clazz, final String fieldName,
              final Object value) throws NoSuchFieldException {
          final Field field = clazz.getDeclaredField(fieldName);
  
          try {
              setField(field, object, value);
          } catch (final Exception e) {
              LOG.error(e.getMessage(), e);
          }
      }
docs: Changing the value of a given field.
  
  @param object
  -- target object of injection
  @param clazz
  -- type of argument object
  @param fieldName
  -- name of field whose value is to be set
  @param value
  -- object that is injected