if (vmInstall == null) return true; String javaVersion= vmInstall.getJavaVersion();
if (!(vmInstall instanceof IVMInstall2)) return true; String javaVersion = ((IVMInstall2)vmInstall).getJavaVersion();
	public static boolean is50OrHigherJRE(IJavaProject project) throws CoreException {		IVMInstall vmInstall= JavaRuntime.getVMInstall(project);		if (vmInstall == null)			return true; // assume 5.0		String javaVersion= vmInstall.getJavaVersion();		if (javaVersion == null)			return true; // assume 5.0		return javaVersion.startsWith(JavaCore.VERSION_1_5);	}