public void setBasePort(int wantedPort) {
        this.basePort = wantedPort;
    }
WARNING: should only be called before initService()
config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java