class DefaultBrowseNodeGenerator extends ComponentPathBrowseNodeGenerator {

  @Override
  public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) {
    List<String> paths = new ArrayList<>();

    if (!Strings2.isBlank(component.group())) {
      paths.add(component.group());
    }
    paths.add(component.name());
    if (!Strings2.isBlank(component.version())) {
      paths.add(component.version());
    }
    return BrowsePaths.fromPaths(paths, true);
  }

}