Annotation[] annots = clazz.getDeclaredAnnotations();
//Looking for bean types
if(AnnotationUtil.hasAnnotation(annots, Typed.class))
{
Typed beanTypes = (Typed) AnnotationUtil.getAnnotation(annots, Typed.class);
defineUserDefinedBeanTypes(bean, null, beanTypes);
}
else
{
defineNormalApiTypes(bean, clazz);