@Override
    public void deconstruct() {
        stop();
        super.deconstruct();
    }
Adds a method. If a method with the same name already exists, it will be replaced.
@param method The method to add.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/rpc/RpcConnector.java