final BeanTag tag = new BeanTag();
tag.setElement(element);
tag.setFilename(this.getFilename());
tag.setPlaceHolderResolver(this.getPlaceHolderResolver());
final Bean bean = new Bean();
bean.setEagerLoaded(tag.isEagerLoaded());
bean.setId(tag.getId());
bean.setSingleton(tag.isSingleton());
bean.setTypeName(tag.getClassName());
bean.setFactoryMethod(tag.getFactoryMethod());
bean.setInitMethod(tag.getInitMethod());
bean.setDestroyMethod(tag.getDestroyMethod());
this.addBean(bean);
this.setParentBean(bean);
bean.setConstructorValues(this.visitConstructorValues(tag.getConstructorValues()));
bean.setProperties(this.visitProperties(tag.getProperties()));
this.removeParentBean();
}