code: private void setAnswer(FormField field, Object value) {
          if (!isSubmitType()) {
              throw new IllegalStateException("Cannot set an answer if the form is not of type " +
              "\"submit\"");
          }
          field.resetValues();
          field.addValue(value.toString());
      }
docs: Sets a new Object value to a given form's field. In fact, the object representation
  (i.e. #toString) will be the actual value of the field.<p>
  
  If the value to set to the field is not a basic type (e.g. String, boolean, int, etc.) you
  will need to use {@link #setAnswer(String, String)} where the String value is the
  String representation of the object.<p>
  
  Before setting the new value to the field we will check if the form is of type submit. If
  the form isn't of type submit means that it's not possible to complete the form and an
  exception will be thrown.
  
  @param field the form field that was completed.
  @param value the Object value that was answered. The object representation will be the
  actual value.
  @throws IllegalStateException if the form is not of type "submit".