response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Resource name not found");
return;
}
PluginRegistry registry = PluginRegistry.instance();
Plugin plugin = registry.getPlugin(pluginKey);
if (plugin == null) {
response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin not found in registry: " + pluginKey);
return;
}
PluginModule pluginModule = plugin.getModuleByKey(pluginModuleKey);
if (pluginModule == null) {
response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin module not found: " + pluginKey+"."+pluginModuleKey);
return;
}
org.jboss.seam.contexts.Contexts.getEventContext().set("currentPluginModule", pluginModule);
String resourcePath = plugin.getPackageThemePath() + "/" + themeResourceName + "." + themeResourceExtension;
InputStream in = Resources.getResourceAsStream(resourcePath, getServletContext());
if (in != null) {
boolean isInterpolated = false;