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().");
    }
  }
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()." ) ; } }
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