def METHOD_NAME(self) -> int:
    port = self.harness.service.port
    if not port:
        raise ConfigurationCallException(
            f"Cannot get service port for {self.name}: auto service is not enabled")
    return port