ClassLoader pluginCL = ConsoleClassLoader.findModuleClassLoader(ip.getConsoleConfigId());
URL propertyFileURL = pluginCL.getResource("/" + content);
try {
Properties propertyMap = new Properties();
propertyMap.load(propertyFileURL.openStream());
ThemeContext themeContext =
AdminguiThemeContext.getInstance(ctx, propertyMap);
themeContext.setDefaultClassLoader(pluginCL);
handlerCtx.setOutputValue("themeContext", themeContext);
} catch (Exception ex) {
throw new RuntimeException(
"Unable to access properties file '" + content + "'!", ex);
}