code: public Map<String, Collection<String>> toMap() {
          Map<String, Collection<String>> params = new HashMap<String, Collection<String>>();
          if (null != location) {
              ArrayList<String> valueList = new ArrayList<String>();
              valueList.add(location);
              params.put("location", valueList);
          }
  
          ArrayList<String> mediaModeValueList = new ArrayList<String>();
          mediaModeValueList.add(mediaMode.toString());
          params.put("p2p.preference", mediaModeValueList);
  
          ArrayList<String> archiveModeValueList = new ArrayList<String>();
          archiveModeValueList.add(archiveMode.toString());
          params.put("archiveMode", archiveModeValueList);
  
          return params;
      }
docs: Returns the session properties as a Map.