if (ClassUtil.getClass(annotatedMethod.getBaseType()).isPrimitive())
{
producerMethodBean.setNullable(false);
}
definitionUtil.defineSerializable(producerMethodBean);
definitionUtil.defineStereoTypes(producerMethodBean, AnnotationUtil.getAnnotationsFromSet(annotatedMethod.getAnnotations()));
webBeansContext.getWebBeansUtil().setBeanEnableFlagForProducerBean(bean,
producerMethodBean,
AnnotationUtil.getAnnotationsFromSet(annotatedMethod.getAnnotations()));