code: public static List<String> getNames(String nameList) {
          String[] names = nameList.split(",");
          List<String> results = new LinkedList<>();
          for ( String p : names) {
              String configName = p.trim();
              if ( configName.length() > 0) {
                  results.add(configName);
              }
          }
          return results;
      }
docs: Get a List of process names from a comma separated list
  
  @param nameList a list of process names conforming to the processNameListPattern