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);
}