final public function add(RpcMethod $method) {

        $name = $method->getName();

        if ( array_key_exists($name, $this->rpc_methods) ) {

            $this->logger->warning("Cannot add method $name: duplicate entry");

            return false;

        } else {

            $this->rpc_methods[$name] = $method;

            $this->logger->debug("Added method $name");

            return true;

        }

    }