code: public static void setProperty(final Object object, final Field field, final Object value) throws IllegalAccessException {
          boolean access = field.isAccessible();
          field.setAccessible(true);
          field.set(object, value);
          field.setAccessible(access);
      }
docs: Set a value (accessible or not accessible) in a field of a target object.
  
  @param object instance to set the property on
  @param field  field to set the property on
  @param value  value to set
  @throws IllegalAccessException if the property cannot be set