class AbstractVulasMojo extends AbstractMojo {

  protected final LibraryId getParent(List<String> _trail) {
    LibraryId parent = null;
    // Should not occur
    if (_trail == null || _trail.size() < 2) {
      getLog().warn("Invalid dependency trail [" + _trail + "]");
    }
    // Dependency is direct, there's no parent
    else if (_trail.size() == 2) {
      ;
    }
    // Dependency is transitive, get parent
    else {
      parent = this.parseGAPV(_trail.get(_trail.size() - 2));
    }
    return parent;
  }

}