public static List<String> explodeToList(String delimiter, String string) {

		if (delimiter == null || string == null)
			throw new IllegalArgumentException("Null object");
		
		ArrayList<String> v = new ArrayList<String>();

		StringBuffer curToken = new StringBuffer();
		StringBuffer delimReader = new StringBuffer();

		int length = string.length();
		int delimiterLength = delimiter.length();
		for (int i = 0; i < length; i++) {
			// get the character
			char c = string.charAt(i);

			// check if it could be the delimiter
			delimReader.setLength(0);
			if (c == delimiter.charAt(0)) {
				// check the whole delimiter
				boolean equals = true;
				int j = 1;
				for (; (j < delimiterLength) && ((j + i) < length); j++) {
					if (string.charAt(i + j) != delimiter.charAt(j)) {
						equals = false;
						break;
					}
				}

				// delimiter found !!
				if (j == delimiterLength && equals) {
					i = i + delimiterLength - 1;
					v.add(curToken.toString());
					curToken.setLength(0);
				} else
					curToken.append(c);
			} else
				curToken.append(c);
		}
		v.add(curToken.toString());
		curToken.setLength(0);

		return v;
	}