public function refer()
    {
        if ($this->context == null) {
            throw new LogicException('Context must be set before refer to the service.');
        }

        if ($this->proxyFactory == null) {
            throw new LogicException('Proxy factory must be set before refer to the service.');
        }

        if ($this->clientFactory == null) {
            throw new LogicException('Client factory must be set before refer to the service.');
        }

        $identify = $this->config['id'] ?? $this->config['interface'] ?? null;

        $this->container->instance($identify, $this->getProxy());
    }