code: public static Map<String,String> getNamesWithAliases(String nameList) {
          String[] names = nameList.split(",");
          Map<String,String> results = new LinkedHashMap<>();  //retain ordering / determinism
          for ( String p : names) {
              String configName = p.trim();
  
              if ( configName.length() > 0) {
                  Matcher matcher = nameWithAlias.matcher(configName);
                  if (matcher.matches()) {
                      results.put(matcher.group(2), matcher.group(1));
                  } else {
                      results.put(configName, configName);
                  }
              }
          }
          return results;
      }
docs: Get a Map of process name/alias to process config name
  A config may be reused under multiple aliases
  
  @param nameList a list of process names conforming to the processNameListPattern