}
/* Write the XML encoding to a writer and return it */
StringWriter sw = new StringWriter();
try {
moduleInfo.encode(sw);
ResponseBuilder rb = Response.ok(sw.toString());
return rb.build();
} catch (javax.xml.bind.JAXBException excp) {
/* Log an error and return an error response */
logger.warning("ModuleManager: unable to encode module info " + moduleName);