if (themeResourceName == null) {
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);