/// <summary>Configures the options.</summary>
        /// <param name="options">The application's MVC JSON configuration.</param>
        /// <param name="serializerSettings">The application's JSON serialization settings.</param>
        /// <param name="charPool">A pool of <see cref="char"/>.</param>
        /// <param name="halRepository">The application's HAL+JSON repository.</param>
        static void ConfigureMvc(
            [NotNull] MvcOptions options,
            [NotNull] JsonSerializerSettings serializerSettings,
            [NotNull] ArrayPool <char> charPool,
            [NotNull] IHalRepository halRepository)
        {
            var outputFormatter = new HalJsonOutputFormatter(serializerSettings, charPool, halRepository);

            options.OutputFormatters.Add(outputFormatter);
        }
        /// <inheritdoc/>
        void IConfigureOptions <MvcOptions> .Configure(MvcOptions options)
        {
            var outputFormatter = new HalJsonOutputFormatter(_jsonOptions.SerializerSettings, _charPool, options, _halRepository);

            options.OutputFormatters.Add(outputFormatter);
        }