if(dependentProducer)
{
if(!Serializable.class.isAssignableFrom(injected.getClass()))
{
throw new IllegalProductException("If a producer method or field of scope @Dependent returns an serializable object for injection " +
"into an injection point "+ injectionPoint +" that requires a passivation capable dependency");
}
}