private ServiceConfiguration GetConfigurationOrNull(Type type, ContractsList contracts)
        {
            var result = Configuration.GetConfigurationOrNull(type, contracts);

            if (result == null && type.IsGenericType)
            {
                result = Configuration.GetConfigurationOrNull(type.GetDefinition(), contracts);
            }
            return(result);
        }