@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public void updatePackageFromJAXB(@PathParam("packageName") String packageName, Package p) {
try {
ModuleItem item = rulesRepository.loadModule(packageName);
item.checkout();
item.updateDescription(p.getDescription());
item.updateTitle(p.getTitle());
/* TODO: add more updates to package item from JSON */
item.checkin(p.getCheckInComment());
rulesRepository.save();
} catch (Exception e) {