protected function getHandlerStack()
    {
        $handlerStack = HandlerStack::create($this->getHandler());

        $this->configureHandlerStack($handlerStack);

        return $handlerStack;
    }