/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 76 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)o;
/* 77 */ if ((bean.getBean() == null) && (!bean.isAbstract()) && (bean.getParent() == null))
/* */ {
/* 79 */ ConstructorMetaData constructor = bean.getConstructor();
/* 80 */ if (constructor == null)
/* 81 */ throw new IllegalArgumentException("Bean should have a class attribute or a constructor element.");
/* 82 */ if (constructor.getFactoryMethod() == null)
/* */ {
/* 84 */ if (constructor.getValue() == null)
/* 85 */ throw new IllegalArgumentException("Bean should have a class attribute or the constructor element should have either a factoryMethod attribute or embedded value.");
/* */ }
/* 87 */ else if ((constructor.getFactory() == null) && (constructor.getFactoryClass() == null))
/* 88 */ throw new IllegalArgumentException("Bean should have a class attribute or the constructor element should have one of a factoryClass attribute or a factory element, or embedded value.");
/* */ }
/* 90 */ return bean;
/* */ }