class ParameterUtils {

    public static List<String> splitParams(String parameterString) {

        ArrayList<String> params = new ArrayList<>();
        Matcher m = WHITESPACE_IF_NOT_QUOTED.matcher(parameterString);
        while (m.find()) {
            if (m.group(1) != null) {
                // Add double-quoted string without the quotes
                params.add(m.group(1));
            } else {
                // Add unquoted word
                params.add(m.group(2));
            }
        }
        return params;
    }

    private  ParameterUtils();

}