protected function setCollectorHandler(ResultInterface $result)
    {
        $status = $result->getStatus();
        if (is_null($result->getHandler()) && $this->getHandler($status)) {
            // debug message
            $this->debug(Message::get(
                Message::DEBUG_SET_C_HANDLER,
                get_class($this),
                $status
            ));
            $result->setHandler($this->getHandler($status));
        }
        return $this;
    }