public static Collection<String> parseStringList(String stringList,String delimiter){
  if (stringList == null)   return Collections.emptyList();
  if (!stringList.contains(delimiter))   return Lists.newArrayList(stringList);
  String[] array=stringList.split(delimiter);
  List<String> list=new ArrayList<>(array.length);
  for (  String s : array) {
    list.add(s.trim());
  }
  return list;
}

public static Collection < String > parseStringList ( String stringList , String delimiter ) { if ( stringList == null ) return Collections . emptyList ( ) ; if ( ! stringList . contains ( delimiter ) ) return Lists . newArrayList ( stringList ) ; String [ ] array = stringList . split ( delimiter ) ; List < String > list = new ArrayList < > ( array . length ) ; for ( String s : array ) { list . add ( s . trim ( ) ) ; } return list ; }
parses a list of strings given as string and separated with a delemiter , e . g . \ " foo , bar , lock \ "
