code: public static void set(Object target, Field field, Object value)
      {
          if (target != null)
          {
              if (!field.isAccessible())
              {
                  field.setAccessible(true);
              }
              try
              {
                  field.set(target, value);
              }
              catch (IllegalArgumentException iarg)
              {
                  throw new PropertyAccessException(iarg);
              }
              catch (IllegalAccessException iacc)
              {
                  throw new PropertyAccessException(iacc);
              }
          } // ignore if object is null;
      }
docs: Sets an object onto a field.
  
  @param target
  the target
  @param field
  the field
  @param value
  the value
  
  @throws PropertyAccessException
  the property access exception