@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public void updateAssetSource(@PathParam("packageName") String packageName, @PathParam("assetName") String assetName, String content) {
try {
//Throws RulesRepositoryException if the package or asset does not exist
AssetItem asset = rulesRepository.loadModule(packageName).loadAsset(assetName);
asset.checkout();
asset.updateContent(content);
asset.checkin("Updated asset source from REST interface");
rulesRepository.save();
} catch (RuntimeException e) {
throw new WebApplicationException(e);