import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
public class PropertiesFileReader {
public static Properties readProperties(String propertiesFilePath) {
Properties properties = new Properties();
FileInputStream fis = null;
try {
fis = new FileInputStream(propertiesFilePath);
if (fis != null) {
properties.load(fis);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (fis != null) {
fis.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
return properties;
}
}