code: public String getRootPath() {
      if (metadata.getFilters().size() == 1) {
        return metadata.getFilters().get(0).getRootPath();
      }
      else {
        throw new IllegalStateException("Content package has more than one package filter - please use getFilters().");
      }
    }
docs: Get root path of the package. This does only work if there is only one filter of the package.
  If they are more filters use {@link #getFilters()} instead.
  @return Root path of package