protected function checkHandlerName(array $handlerInfos)
    {
        if (!array_key_exists('name', $handlerInfos)) {
            throw new Exception(
                'The handler infos should have the property name',
                self::ERR_HANDLER_INFOS_MISSING_NAME
            );
        }
        
        if (!is_string($handlerInfos['name'])) {
            throw new Exception(
                'The handler name should be a string.',
                self::ERR_HANDLER_NAME_NOT_A_STRING
            );
        }
        
        if (!class_exists($handlerInfos['name'])) {
            throw new Exception(
                'The class '.$handlerInfos['name'].' has not been found.',
                self::ERR_HANDLER_CLASS_NOT_FOUND
            );
        }
    }