class P2BrowseNodeGenerator implements BrowseNodeGenerator {

  @Override
  public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) {
    List<String> assetPaths = splitPath(asset.name());

    List<BrowsePaths> browsePaths = computeComponentPath(assetPaths, component);

    browsePaths.addAll(BrowsePaths.fromPaths(Collections.singletonList(assetPaths.get(assetPaths.size() - 1)), false));
    return browsePaths;
  }

  @Inject public  P2BrowseNodeGenerator();

}