private ModuleItem handlePackageItem(AssetItem item, Asset asset) throws SerializationException {
    ModuleItem packageItem = item.getModule();

    ContentHandler handler = ContentManager.getHandler(asset.getFormat());
    handler.retrieveAssetContent(asset, item);

    asset.setReadonly(asset.getMetaData().isHasSucceedingVersion() || asset.isArchived());

    if (packageItem.isSnapshot()) {
      asset.setReadonly(true);
    }
    return packageItem;
  }
  private PackageItem handlePackageItem(AssetItem item, RuleAsset asset)
      throws SerializationException {
    PackageItem pkgItem = item.getPackage();

    ContentHandler handler = ContentManager.getHandler(asset.metaData.format);
    handler.retrieveAssetContent(asset, pkgItem, item);

    asset.isreadonly = asset.metaData.hasSucceedingVersion;

    if (pkgItem.isSnapshot()) {
      asset.isreadonly = true;
    }
    return pkgItem;
  }