code: private void populateSecMechList(TSSCompoundSecMechListConfig mechListConfig, List<LayersData> layersList,
                                       Map<String, List<TransportAddress>> addrMap) throws Exception {
          for (LayersData mech : layersList) {
              Map<String, TSSCompoundSecMechConfig> tssCompoundSecMechConfigs = extractCompoundSecMech(mech, addrMap);
              Iterator<Entry<String, TSSCompoundSecMechConfig>> entries = tssCompoundSecMechConfigs.entrySet().iterator();
              while (entries.hasNext()) {
                  Entry<String, TSSCompoundSecMechConfig> entry = entries.next();
                  mechListConfig.add(entry.getValue(), entry.getKey());
              }
          }
      }
docs: /*
  Iterate through each of the "layers" elements to add compound sec mechs to the compound sec mech list.