ScopeType scope = this.getScopeType().getAnnotation(ScopeType.class);
if (scope.passivating())
{
if (!this.isSerializable())
{
throw new IllegalProductException("WebBeans producer method : " + creatorMethod.getName() + " return type in the component implementation class : " + this.parent.getReturnType().getName() + " with passivating scope @" + scope.annotationType().getName() + " must be Serializable");
}
}
}