in server/src/main/java/org/apache/hupa/server/utils/ConfigurationProperties.java [156:184]
public static Properties loadProperties(String name) {
if (name == null)
return null;
Properties properties = null;
File file = new File(name);
if (file.exists()) {
FileInputStream fis = null;
try {
properties = new Properties();
fis = new FileInputStream(file);
properties.load(fis);
} catch (Exception e) {
properties = null;
e.printStackTrace();
} finally {
if (fis != null) {
try {
fis.close();
} catch (IOException e) {
// Empty on purpose
}
}
}
}
return properties;
}