Code example for PropertyResourceBundle

0
	 * @return the populated Properties instance 
	 * @throws IOException if properties loading failed 
	 */ 
	protected ResourceBundle loadProperties(Resource resource, String filename) throws IOException {
		InputStream is = resource.getInputStream();
		ResourceBundle ret = new PropertyResourceBundle(is); 
		return ret;
//		try { 
//			if (resource.getFilename().endsWith(XML_SUFFIX)) { 
//				if (logger.isDebugEnabled()) { 
//					logger.debug("Loading properties [" + resource.getFilename() + "]"); 
//				} 
//				this.propertiesPersister.loadFromXml(props, is); 
//			} 
//			else { 
//				String encoding = null; 
//				if (this.fileEncodings != null) { 
//					encoding = this.fileEncodings.getProperty(filename); 
//				} 
//				if (encoding == null) {