@RequestMapping(value = "", method = RequestMethod.POST, consumes = "application/xml")
public void postPackage(@RequestBody Package pkgData, HttpServletResponse res) {
log.debug("Posting package: {}", pkgData);
// Look up the actual module.
Module moduleData = pkgData.getModule();
String groupId = moduleData.getGroupId();
String moduleId = moduleData.getModuleId();
log.debug("Looking up module entity with groupId={}, moduleId={}", groupId, moduleId);
Module module = moduleService.findByGroupIdAndModuleId(groupId, moduleId);
log.debug("Found module: {}", module);
// Prepare the package for saving.
pkgData.setModule(module);