code: public static List<String> listify(final String str, final String delimiter) {
          if (str == null) {
              return Collections.emptyList();
          }
  
          final StringTokenizer tok = new StringTokenizer(str, delimiter);
          final List<String> list = new ArrayList<>();
  
          while (tok.hasMoreElements()) {
              list.add(StringUtil.trim(tok.nextToken()));
          }
  
          return list;
      }
docs: helper method to convert a 'delimiter' separated string to a list.
  This is a VERY basic parsing/creation of CSV, if you seen anything superior then use <a href="http://flatpack.sf.net">FlatPack</a>.
  
  @param str
  the 'delimiter' separated string
  @param delimiter
  typically a ','
  @return a list
  @see <a href="http://flatpack.sf.net">FlatPack</a> for more comprehensive parser