@Produces(MediaType.WILDCARD)
public void updateAssetBinary(@PathParam("packageName") String packageName, @PathParam("assetName") String assetName, InputStream is) {
try {
//Throws RulesRepositoryException if the package or asset does not exist
AssetItem asset = rulesRepository.loadModule(packageName).loadAsset(assetName);
asset.checkout();
asset.updateBinaryContentAttachment(is);
asset.updateValid(assetValidator.validate(asset));
if (AssetFormats.affectsBinaryUpToDate(asset.getFormat())) {
ModuleItem pkg = asset.getModule();
pkg.updateBinaryUpToDate(false);