private InputStream findVMProfile() {
private Properties findVMProfile() { Properties result = new Properties();  String j2meConfig = properties.getProperty(Constants.J2ME_MICROEDITION_CONFIGURATION); String j2meProfiles = properties.getProperty(Constants.J2ME_MICROEDITION_PROFILES); String vmProfile = null; if (j2meConfig != null && j2meConfig.length() > 0 && j2meProfiles != null && j2meProfiles.length() > 0) {   String[] j2meProfileList = ManifestElement.getArrayFromList(j2meProfiles, " "); if (j2meProfileList != null && j2meProfileList.length > 0) vmProfile = j2meConfig + '_' + j2meProfileList[j2meProfileList.length - 1]; } else {  String javaSpecVersion = properties.getProperty("java.specification.version");   if (javaSpecVersion != null) { StringTokenizer st = new StringTokenizer(javaSpecVersion, " _-"); javaSpecVersion = st.nextToken(); vmProfile = "J2SE-" + javaSpecVersion; } }
	private InputStream findVMProfile() {		URL url = null;		// check for the java profile property for a url		String propJavaProfile = System.getProperty(Constants.OSGI_JAVA_PROFILE);		if (propJavaProfile != null)			try {				// we assume a URL				url = new URL(propJavaProfile);			} catch (MalformedURLException e1) {				// TODO consider logging ...			}		if (url == null && vmProfile != null) {			// look for a profile in the system bundle based on the vm profile			String javaProfile = vmProfile + ".profile"; //$NON-NLS-1$			url = systemBundle.getEntry(javaProfile);			if (url == null)				url = getClass().getResource(javaProfile);		}		if (url != null)			try {				return url.openStream();			} catch (IOException e) {				// TODO consider logging ...			}		return null;	}