code: private void populate(Field field, Object target, String stringValue) {
          field.setAccessible(true);
          try {
              final Class fieldType = field.getType();
              final Object value = TypeConverter.convert(stringValue).to(fieldType);
              field.set(target, value);
          } catch (IllegalAccessException e) {
              throw new RuntimeException("Could not populate field " + field, e);
          }
      }
docs: Populates the specified field on the target with the value from the given option.
  
  @param field
  the field to populate
  @param target
  the target instance containing the field
  @param stringValue
  the value to be set on the field