code: public String toGav() {
          if (purl.getNamespace() != null && purl.getVersion() != null) {
              return String.format("%s:%s:%s", purl.getNamespace(), purl.getName(), purl.getVersion());
          }
          return null;
      }
docs: Returns the GAV representation of the Package URL as utilized in gradle
  builds.
  
  @return the GAV representation of the Package URL