resource = resourceOracle.getResource(path);
}
if (resource != null) {
InputStream resourceStream = null;
try {
resourceStream = resource.openContents();
} catch (IOException ex) {
logger.log(TreeLogger.ERROR, "Error opening resource: " + resource.getLocation());
throw new RuntimeException(ex);
}
AbstractResource found = element.load(resourceStream, locale);