code: private Map<String, String[]> parseParams(I_CmsXmlContentLocation root) {
  
          // first use multimap for convenience, to group values for the same key,
          // and then convert to result format
          ArrayListMultimap<String, String> mmap = ArrayListMultimap.create();
          for (I_CmsXmlContentLocation location : root.getSubValues(N_PARAMETER)) {
              String key = location.getSubValue(N_KEY).getValue().getStringValue(m_cms);
              String value = location.getSubValue(N_VALUE).getValue().getStringValue(m_cms);
              mmap.put(key, value);
          }
          Map<String, String[]> result = new HashMap<>();
          String[] emptyArray = new String[] {}; // need this for toArray
          for (String key : mmap.keySet()) {
              List<String> values = mmap.get(key);
              String[] valuesArray = values.toArray(emptyArray);
              result.put(key, valuesArray);
          }
          return result;
  
      }
docs: Parse parameters and put them in a map.<p>
  
  @param root the location from which to start parsing
  
  @return the parameter map