static public Class<?> getTypeFromString(String str) {
	str	= str.trim();

	// Does it contain anything other then numbers or a decimal point?
	if (Pattern.matches("[\\d]+((([\\.]){1}[\\d]+)|(L))?", str)) {
	    if (str.contains(".")) {
		return Double.TYPE;
	    }

	    if (str.contains("L")) {
		return Long.TYPE;
	    }

	    return Integer.TYPE;
	}

	if (Pattern.matches("^(true|false)$", str.toLowerCase())) {
	    return Boolean.TYPE;
	}

	return str.getClass();
    }