code: public static Object getValueOfField(Field field, Object ref) {
  		field.setAccessible(true);
  		Object value = null;
  		try {
  			value = field.get(ref);
  		} catch (IllegalArgumentException e) {
  			log.warning(e.getClass().getSimpleName() + ": " + e.getMessage());
  		} catch (IllegalAccessException e) {
  			log.warning(e.getClass().getSimpleName() + ": " + e.getMessage());
  		}
  		return value;
  	}
docs: <p>
  getValueOfField.
  </p>
  
  @param field
  a {@link java.lang.reflect.Field} object.
  @param ref
  a {@link java.lang.Object} object.
  @return a {@link java.lang.Object} object.