Filter filter = context.createFilter(platformFilter);
Filter filter = FrameworkUtil.createFilter(platformFilter);
	private boolean isResolvable(BundleDescription bundle, Dictionary[] platformProperties, ArrayList rejectedSingletons) {		// check if this is a rejected singleton		if (rejectedSingletons.contains(bundle))			return false;		// Check for singletons		if (bundle.isSingleton()) {			Object[] sameName = resolverBundles.get(bundle.getName());			if (sameName.length > 1) // Need to check if one is already resolved				for (int i = 0; i < sameName.length; i++) {					if (sameName[i] == bundle || !((ResolverBundle) sameName[i]).getBundle().isSingleton())						continue; // Ignore the bundle we are resolving and non-singletons					if (((ResolverBundle) sameName[i]).getBundle().isResolved()) {						rejectedSingletons.add(bundle);						return false; // Must fail since there is already a resolved bundle					}				}		}		// check the required execution environment		String[] ees = bundle.getExecutionEnvironments();		boolean matchedEE = ees.length == 0;		if (!matchedEE)			for (int i = 0; i < CURRENT_EES.length && !matchedEE; i++)				for (int j = 0; j < CURRENT_EES[i].length && !matchedEE; j++)					for (int k = 0; k < ees.length && !matchedEE; k++)						if (CURRENT_EES[i][j].equals(ees[k])) {							((BundleDescriptionImpl) bundle).setEquinoxEE(i);							matchedEE = true;						}		if (!matchedEE) {			StringBuffer bundleEE = new StringBuffer(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT.length() + 20);			bundleEE.append(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT).append(": "); //$NON-NLS-1$			for (int i = 0; i < ees.length; i++) {				if (i > 0)					bundleEE.append(","); //$NON-NLS-1$				bundleEE.append(ees[i]);			}			state.addResolverError(bundle, ResolverError.MISSING_EXECUTION_ENVIRONMENT, bundleEE.toString(), null);			return false;		}							// check the platform filter		String platformFilter = bundle.getPlatformFilter();		if (platformFilter == null)			return true;		if (platformProperties == null)			return false;		try {			Filter filter = context.createFilter(platformFilter);			for (int i = 0; i < platformProperties.length; i++)				if (filter.match(platformProperties[i]))					return true;		} catch (InvalidSyntaxException e) {			// return false below		}		state.addResolverError(bundle, ResolverError.PLATFORM_FILTER, platformFilter, null);		return false;	}