code: private void insertKeyValue(String key, String value) throws StorageException {
          if (value != null) {
              value = Utility.safeEncode(value);
          }
          if (!key.startsWith("$")) {
              key = Utility.safeEncode(key);
          }
  
          ArrayList<String> list = this.parameters.get(key);
          if (list == null) {
              list = new ArrayList<String>();
              list.add(value);
              this.parameters.put(key, list);
          }
          else {
              if (!list.contains(value)) {
                  list.add(value);
              }
          }
      }
docs: Inserts a key / value in the Hashmap, assumes the value is already utf-8 encoded.
  
  @param key
  the key to insert
  @param value
  the value to insert
  @throws StorageException