IBean bean = ((IBean) element);
if (bean.isRootBean()) {
return new RootBeanProperties(bean);
}
else if (bean.isChildBean()) {
return new ChildBeanProperties(bean);
}
else {
// FIXME add support for factory beans
// return new FactoryBeanProperties(bean);
}