public static String[] split(String source, String delim) {
		if (source == null) {
			throw new IllegalArgumentException();
		}
		if (delim == null || "".equals(delim.trim())) {
			delim = ",";
		}
		StringTokenizer tokenizer = new StringTokenizer(source, delim);
		String[] array = new String[tokenizer.countTokens()];
		int index = 0;
		while (tokenizer.hasMoreTokens()) {
			array[index] = tokenizer.nextToken();
			index++;
		}
		return array;
	}