}
@Override
public T produce(CreationalContext<T> creationalContext)
{
DynamicMockManager mockManager =
BeanProvider.getContextualReference(this.beanManager, DynamicMockManager.class, false);
for (Type beanType : this.beanTypes)
{
Object mockInstance = mockManager.getMock(
(Class)beanType, this.qualifiers.toArray(new Annotation[this.qualifiers.size()]));
if (mockInstance != null)
{
return (T)mockInstance;