code: public static Map<String, String> pairsToMap(List<CmsPair<String, String>> pairs) {
  
          LinkedHashMap<String, String> result = new LinkedHashMap<String, String>();
          for (CmsPair<String, String> pair : pairs) {
              result.put(pair.getFirst(), pair.getSecond());
          }
          return result;
      }
docs: Helper method for converting a list of string pairs to a string map.<p>
  
  The first component of each pair is used as a map key, the second component as the
  value for the key.
  
  @param pairs the list of pairs
  
  @return a string map