resourceURL = findProperties(localeString, propertiesLocation); if (resourceURL == null) { return null; } ResourceBundle resourceBundle = null; InputStream resourceStream = null; try { resourceStream = resourceURL.openStream(); resourceBundle = new PropertyResourceBundle(resourceStream); } catch (IOException e2) { return null; } finally { if (resourceStream != null) {
BundleResourceBundle result = (BundleResourceBundle) cache.get(localeString); if (result != null) return (ResourceBundle) (result.isEmpty() ? null : result); String[] nlVarients = buildNLVariants(localeString); BundleResourceBundle parent = null; for (int i = nlVarients.length-1; i >= 0; i--) { BundleResourceBundle varientBundle = (BundleResourceBundle) cache.get(nlVarients[i]); URL varientURL = findResource(propertiesLocation + (nlVarients[i].equals("") ? nlVarients[i] : '_' + nlVarients[i]) + ".properties"); if (varientURL != null) { InputStream resourceStream = null;
	protected ResourceBundle getResourceBundle(String localeString) {		URL resourceURL = null;		String propertiesLocation = (String) rawHeaders.get(Constants.BUNDLE_LOCALIZATION);		if (propertiesLocation == null) {			propertiesLocation = Constants.BUNDLE_LOCALIZATION_DEFAULT_BASENAME;		}		resourceURL = findProperties(localeString, propertiesLocation);		if (resourceURL == null) {			return null;		}		ResourceBundle resourceBundle = null;		InputStream resourceStream = null;		try {			resourceStream = resourceURL.openStream();			resourceBundle = new PropertyResourceBundle(resourceStream);		} catch (IOException e2) {			return null;		} finally {			if (resourceStream != null) {				try {					resourceStream.close();				} catch (IOException e3) {					//Ignore exception				}			}		}		return resourceBundle;	}