public static void SetResolver(IComponentContext componentContext, HttpConfiguration configuration)
        {
            var webApiDependencyResolver = componentContext.GetComponent <IWebApiDependencyResolverContract>();

            configuration.DependencyResolver = webApiDependencyResolver ?? throw new CompositionException(
                                                         "No provider component for IWebApiDependencyResolverContract is registered. " +
                                                         "Make sure you've included the correct libraries in the composition config.");
        }