private Properties loadProperties(String propertiesLocation) {
		Properties properties = new Properties();

		InputStream is = null;
		try {
			URL url = new URL(null, propertiesLocation, new ClasspathURLStreamHandler());
			is = url.openConnection().getInputStream();

			if(propertiesLocation.endsWith(XML_FILE_EXTENSION)) {
				properties.loadFromXML(is);
			} else {
				if(this.propertiesEncoding != null) {
					properties.load(new InputStreamReader(is, this.propertiesEncoding));
				}
				else {
					properties.load(is);
				}
			}
		} catch(IOException e) {
			errorHandler.error("Could not load properties from " + propertiesLocation + ".", e, ErrorCode.GENERIC_FAILURE);
		} finally {
			if(is != null) {
				try {
					is.close();
				} catch(IOException e) {
				}
			}
		}

		return properties;
	}
private Properties loadProperties ( String propertiesLocation ) { Properties properties = new Properties ( ) ; InputStream is = null ; try { URL url = new URL ( null , propertiesLocation , new ClasspathURLStreamHandler ( ) ) ; is = url . openConnection ( ) . getInputStream ( ) ; if ( propertiesLocation . endsWith ( XML_FILE_EXTENSION ) ) { properties . loadFromXML ( is ) ; } else { if ( this . propertiesEncoding != null ) { properties . load ( new InputStreamReader ( is , this . propertiesEncoding ) ) ; } else { properties . load ( is ) ; } } } catch ( IOException e ) { errorHandler . error ( "Could not load properties from " + propertiesLocation + "." , e , ErrorCode . GENERIC_FAILURE ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e ) { } } } return properties ; }
@param propertiesLocation
@return