code: protected String getArtifactId(String artifactId) {
          return this.artifactId == null || this.artifactId.length() == 0
                  ? artifactId
                  : this.artifactId;
      }
docs: Returns the artifact id to use.
  
  @param artifactId The current project's artifact id.
  @return The artifact id to use.