public static List<String> getListOfString(String cmdLineArg) {
        if (cmdLineArg == null || cmdLineArg.isEmpty()) {
            return new ArrayList<String>(0);
        }

        String[] splitted = cmdLineArg.split(",");
        List<String> result = new ArrayList<String>(splitted.length);

        for (String s : splitted) {
            String str = s.trim();
            if (!str.isEmpty()) {
                result.add(str);
            }
        }

        return result;
    }