class OrientMaven2BrowseNodeGenerator extends ComponentPathBrowseNodeGenerator {

  @Override
  public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) {
    checkNotNull(asset);

    if (component != null) {
      List<BrowsePaths> paths = computeComponentPaths(asset, component);

      String lastSegment = lastSegment(asset.name());

      BrowsePaths.appendPath(paths, lastSegment);

      return paths;
    }
    else {
      return super.computeAssetPaths(asset, null);
    }
  }

}