/* Fetch the module from the module manager */
ModuleManager manager = ModuleManager.getModuleManager();
Module module = manager.getInstalledModules().get(moduleName);
if (module == null) {
/* Log an error and return an error response */
logger.warning("ModuleManager: unable to locate module " + moduleName);
ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
return rb.build();
}
/* Check to see that the module info exists -- it's really bad if it doesn't */