code: public static Object getObject(Object from, Field field)
      {
          if (!field.isAccessible())
          {
              field.setAccessible(true);
          }
          try
          {
              return field.get(from);
          }
          catch (IllegalArgumentException iarg)
          {
              throw new PropertyAccessException(iarg);
          }
          catch (IllegalAccessException iacc)
          {
              throw new PropertyAccessException(iacc);
          }
      }
docs: Gets object from field.
  
  @param from
  the from
  @param field
  the field
  
  @return the object
  
  @throws PropertyAccessException
  the property access exception