class OrientPyPiFacetImpl extends FacetSupport implements PyPiFacet {

  @Override
  @Nullable
  public Asset put(final String path, final AssetBlob assetBlob) throws IOException {
    if (isRootIndexPath(path)) {
      log.info("Not repairing root index");
      return null;
    }
    else if (isIndexPath(path)) {
      return putIndex(path, assetBlob);
    }
    else {
      // PEP503 contains no restrictions to packages excluding rules for index and root index so assume rest is package
      return putPackage(path, assetBlob);
    }
  }

  @Inject public  OrientPyPiFacetImpl(final AssetEntityAdapter assetEntityAdapter);

}