src/com/thetransactioncompany/cors/CORSConfiguration.java
protected static String[] parseWords(final String s) {
		
		String s1 = s.trim();
		
		if (s1.isEmpty())
			return new String[]{};
		else
			return s1.split("\\s*,\\s*|\\s+");
	}
protected static String[] parseWords(final String s) {
		
		String s1 = s.trim();
		
		if (s1.isEmpty())
			return new String[]{};
		else
			return s1.split("\\s*,\\s*|\\s+");
	}
Parses a string containing words separated by space and/or comma.

@param s The string to parse. Must not be {@code null}.

@return An array of the parsed words, empty if none were found.