for (int j = 0; j < basePaths.length; j++) { String fileName = basePaths[j].getFile() + variants[i] + path; File file = new File(fileName); if (!file.exists()) {    } else {    try { return new URL("file:" + fileName); } catch (MalformedURLException e) {    } }
BundleEntry libEntry = bundleFile.getEntry(variants[i] + path); if (libEntry == null) {    } else {    File libFile = bundleFile.getFile(variants[i] + path); return libFile.getAbsolutePath();
	private URL searchVariants(URL[] basePaths, String[] variants, String path) {		// This method assumed basePaths are 'resolved' URLs		for (int i = 0; i < variants.length; i++) {			for (int j = 0; j < basePaths.length; j++) {				String fileName = basePaths[j].getFile() + variants[i] + path;				File file = new File(fileName);				if (!file.exists()) {					//					if (DEBUG && DEBUG_SHOW_FAILURE)					//						debug("not found " + file.getAbsolutePath());					// //$NON-NLS-1$				} else {					//					if (DEBUG && DEBUG_SHOW_SUCCESS)					//						debug("found " + path + " as " +					// file.getAbsolutePath()); //$NON-NLS-1$ //$NON-NLS-2$					try {						return new URL("file:" + fileName); //$NON-NLS-1$					} catch (MalformedURLException e) {						// Intentionally ignore this exception						// so we continue looking for a matching						// URL.					}				}			}		}		return null;	}