in src/main/java/org/apache/tomee/jakartaee/api/locator/ProviderLocator.java [447:468]
public static String lookupByJREPropertyFile(final String path, final String property) throws IOException {
final String jreDirectory = System.getProperty("java.home");
final File configurationFile = new File(jreDirectory + File.separator + path);
if (configurationFile.exists() && configurationFile.canRead()) {
final Properties properties = new Properties();
InputStream in = null;
try {
in = new FileInputStream(configurationFile);
properties.load(in);
return properties.getProperty(property);
} finally {
if (in != null) {
try {
in.close();
} catch (final Exception e) {
//ignore
}
}
}
}
return null;
}