protected function registerHandlers(array $handlersConfig)
    {
        $overrideHandlers = Arr::get($handlersConfig, 'override', []);
        if (count($overrideHandlers) > 0) {
            HandlerFactory::setHandlers($overrideHandlers);

            return $this;
        }

        foreach (Arr::get($handlersConfig, 'custom', []) as $handler) {
            HandlerFactory::register($handler);
        }

        return $this;
    }