public static String convertToJavaIdentifier(String string) {
		if (string == null || string.isEmpty()) {
			return new String();
		}
		char[] ca = string.toCharArray();
		StringBuilder sb = new StringBuilder();
		for (char c : ca) {
			if (sb.length() == 0) {
				if (Character.isJavaIdentifierStart(c)) {
					sb.append(c);
				}
			} else {
				if (Character.isJavaIdentifierPart(c)) {
					sb.append(c);
				}
			}
		}
		return (sb.length() == 0 ? "" : ("$" + sb.toString()));
	}