package gov.nih.nci.cadsr.sentinel.util;

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

/**
 * class to read a properties file
 * 
 * @author myu
 */
public class SentinelToolProperties implements Serializable {

	InputStream is = null;
	private Properties props = null;
	private static SentinelToolProperties SentinelToolProperties = null;

	private SentinelToolProperties() throws IOException {
		props = loadProps();
	}

	public static SentinelToolProperties getFactory() {
		try {
			if (SentinelToolProperties == null) {
				SentinelToolProperties = new SentinelToolProperties();
			}

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();

		}
		return SentinelToolProperties;
	}

	private Properties loadProps() throws IOException {
		try {
			ClassLoader cl = this.getClass().getClassLoader();
			is = cl.getResourceAsStream("project.properties");
			props = new Properties();
			props.load(is);
		} catch (Exception e) {
			throw new IOException("Unable to get properties in loadProps() : "
					+ e);
		} finally {
			if (is != null)
				is.close();
		}

		return props;
	}

	public String getProperty(String key) {
		return props.getProperty(key);
	}
}

package gov.nih.nci.cadsr.sentinel.util;

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

/**
 * class to read a properties file
 * 
 * @author yuma
 */
public class SentinelToolProperties implements Serializable {

	InputStream is = null;
	private Properties props = null;
	private static SentinelToolProperties SentinelToolProperties = null;

	private SentinelToolProperties() throws IOException {
		props = loadProps();
	}

	public static SentinelToolProperties getFactory() {
		try {
			if (SentinelToolProperties == null) {
				SentinelToolProperties = new SentinelToolProperties();
			}

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();

		}
		return SentinelToolProperties;
	}

	private Properties loadProps() throws IOException {
		try {
			ClassLoader cl = this.getClass().getClassLoader();
			is = cl.getResourceAsStream("project.properties");
			props = new Properties();
			props.load(is);
		} catch (Exception e) {
			throw new IOException("Unable to get properties in loadProps() : "
					+ e);
		} finally {
			if (is != null)
				is.close();
		}

		return props;
	}

	public String getProperty(String key) {
		return props.getProperty(key);
	}
}

Fix typo