/* */ public void setParent(Object parent, Object o, QName elementName, ElementBinding element, ElementBinding parentElement)
/* */ {
/* 47 */ AbstractKernelDeployment deployment = (AbstractKernelDeployment)parent;
/* 48 */ if ((o == null) || (!(o instanceof BeanMetaDataFactory)))
/* 49 */ throw new IllegalArgumentException(o + " is not an instance of BeanMetaDataFactory for element " + element.getQName());
/* 50 */ BeanMetaDataFactory bean = (BeanMetaDataFactory)o;
/* 51 */ List beans = deployment.getBeanFactories();
/* 52 */ if (beans == null)
/* */ {
/* 54 */ beans = new ArrayList();
/* 55 */ deployment.setBeanFactories(beans);