in src/main/java/com/microsoft/spring/data/gremlin/telemetry/PropertyLoader.java [31:52]
private static String getPropertyByName(@NonNull String name, @NonNull String filename) {
final Properties properties = new Properties();
final InputStream inputStream = PropertyLoader.class.getResourceAsStream(filename);
if (inputStream == null) {
return null;
}
try {
properties.load(inputStream);
} catch (IOException e) {
// Omitted
} finally {
try {
inputStream.close();
} catch (IOException e) {
// Omitted
}
}
return properties.getProperty(name);
}