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