private static InstanceProducer BuildInstanceProducerForConcreteUnregisteredType(
            Type concreteType, Registration registration)
        {
            var producer = new InstanceProducer(concreteType, registration);

            producer.EnsureTypeWillBeExplicitlyVerified();

            // Flag that this producer is resolved by the container or using unregistered type resolution.
            producer.IsContainerAutoRegistered = true;

            return(producer);
        }