package org.ongawa.peru.chlorination;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ApplicationProperties {
	private static ApplicationProperties appProperties;
	static{
		appProperties = null;
	}
	
	public static ApplicationProperties getInstance() throws IOException{
		if(appProperties == null)
			appProperties = new ApplicationProperties();
		
		return appProperties;
	}
	
	private Properties properties;
	
	private ApplicationProperties() throws IOException{
		this.properties = new Properties();
		String resourceName = KEYS.PROPERTIES_FILENAME;
		ClassLoader loader = Thread.currentThread().getContextClassLoader();
		InputStream resourceStream = loader.getResourceAsStream(resourceName);
		this.properties.load(resourceStream);
	}
	
	public Properties getProperties(){
		return this.properties;
	}
}
@@ -155,16 +155,43 @@
 rties %7B%0A
+%09/**%0A%09 * @author Kiko%0A%09 */%0A
 %09private
@@ -882,8 +882,9 @@
 es;%0A%09%7D%0A%7D
+%0A

Update ApplicationProperties.java