class OrientPyPiFacetImpl extends FacetSupport implements PyPiFacet {

  @Override
  public Asset putIndex(final String path, final AssetBlob assetBlob) {
    final StorageTx tx = UnitOfWork.currentTx();
    final Bucket bucket = tx.findBucket(getRepository());

    Asset asset = findAsset(tx, bucket, path);

    if (asset == null) {
      asset = tx.createAsset(bucket, getRepository().getFormat());
      asset.name(path);
      saveAsset(tx, asset, assetBlob, AssetKind.INDEX);
    }

    return asset;
  }

  @Inject public  OrientPyPiFacetImpl(final AssetEntityAdapter assetEntityAdapter);

}