code: private static void setValue(
        Object value,
        Field field,
        Object destination,
        GenericXml genericXml,
        Map<String, Object> destinationMap,
        String name) {
      if (field != null) {
        FieldInfo.setFieldValue(field, destination, value);
      } else if (genericXml != null) {
        genericXml.set(name, value);
      } else {
        destinationMap.put(name, value);
      }
    }
docs: Sets the value of a given field or map entry.
  
  @param value value
  @param field field to set or {@code null} if not applicable
  @param destination destination object or {@code null} for none
  @param genericXml generic XML or {@code null} if not applicable
  @param destinationMap destination map or {@code null} if not applicable
  @param name key name