class OrientBrowseNodeManager extends ComponentSupport {

  public void maybeCreateFromUpdatedAsset(final String repositoryName, final EntityId assetId, final Asset asset) {
    checkNotNull(assetId);

    if (asset.blobRef() == null) {
      log.trace("asset {} has no content, not creating browse node", assetId);
    }
    else if (browseNodeStore.assetNodeExists(asset)) {
      log.trace("browse node already exists for {} on update", assetId);
    }
    else {
      log.trace("adding browse node for {} on update", assetId);
      createFromAsset(repositoryName, asset);
    }
  }

  @Inject public  OrientBrowseNodeManager(
      final OrientBrowseNodeStore browseNodeStore,
      final ComponentStore componentStore,
      final Map<String, BrowseNodeGenerator> pathGenerators);

}