throw new WebApplicationException(Response.status(500).entity("Asset [" + assetName + "] does not exist in package [" + packageName + "]").build());
}
AssetItem ai = rulesRepository.loadModule(packageName).loadAsset(assetName);
ai.checkout();
ai.updateDescription(asset.getDescription());
ai.updateBinaryContentAttachmentFileName(asset.getBinaryContentAttachmentFileName());
ai.updateFormat(asset.getMetadata().getFormat());
ai.updateBinaryContentAttachment(is);
ai.getModule().updateBinaryUpToDate(false);
ai.checkin(asset.getMetadata().getCheckInComment());