protected function guessHandlerType($handler)
    {
        if (!is_object($handler)) {
            return false;
        }

        foreach ($this->availableHandlerTypes as $type => $classFQN) {
            if ($handler instanceof $classFQN) {
                return $type;
            }
        }

        return false;
    }