code: protected void setMapProperty(Map<String, Object> map, String name, Object value, FormMappingOption option, Object parentBean,
              String parentName) {
          final boolean strArray = isMapValueStringArray(parentBean, parentName);
          final Object registered;
          if (value instanceof String[]) {
              final String[] values = (String[]) value;
              registered = strArray ? values : values.length > 0 ? values[0] : null;
          } else {
              registered = strArray ? (value != null ? new String[] { value.toString() } : EMPTY_STRING_ARRAY) : value;
          }
          map.put(name, filterIfSimpleText(registered, option, name, map.getClass()));
      }
docs: ------------