code: public void setValueForIn(Object value, String name, Map<String, Object> map) {
          if (isListName(name)) {
              String valueStr = null;
              if (value != null) {
                  valueStr = value.toString();
              }
              setValuesForIn(valueStr, stripListIndicator(name), map);
          } else {
              if (name.endsWith("\\[]")) {
                  name = name.replace("\\[]", "[]");
              }
              String cleanName = htmlCleaner.cleanupValue(name);
              Object cleanValue = getCleanValue(value);
              if (map.containsKey(cleanName)) {
                  // overwrite current value
                  map.put(cleanName, cleanValue);
              } else {
                  int firstDot = cleanName.indexOf(".");
                  if (firstDot > -1) {
                      String key = cleanName.substring(0, firstDot);
                      Object nested = getValueImpl(map, key, false);
                      if (nested == null) {
                          nested = new LinkedHashMap<String, Object>();
                          if (isListIndexExpr(key)) {
                              setIndexedListValue(map, key, nested);
                          } else {
                              map.put(key, nested);
                          }
                      }
                      if (nested instanceof Map) {
                          Map<String, Object> nestedMap = (Map<String, Object>) nested;
                          String lastPart = cleanName.substring(firstDot + 1);
                          setValueForIn(cleanValue, lastPart, nestedMap);
                      } else {
                          throw new SlimFixtureException(false, key + " is not a map, but " + nested.getClass());
                      }
                  } else if (isListIndexExpr(name)) {
                      setIndexedListValue(map, cleanName, cleanValue);
                  } else {
                      map.put(cleanName, cleanValue);
                  }
              }
          }
      }
docs: Stores value in map.
  @param value value to be passed.
  @param name name to use this value for.
  @param map map to store value in.