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