if (otherAttributes != null)
{
for (AttributeBinding other : otherAttributes)
elementTypeBinding.addAttribute(other);
}
ParticleHandler particleHandler = wrapperTypeBinding.getHandler();
if (particleHandler instanceof BeanHandler == false)
throw new IllegalStateException("Cannot wrap " + wrapperInfo.getName() + " not a bean type " + particleHandler);
BeanHandler beanHandler = (BeanHandler) particleHandler;
WrapperBeanAdapterFactory wrapperFactory = new WrapperBeanAdapterFactory(beanHandler.getBeanAdapterFactory(), propertyType.getType());
elementTypeBinding.setHandler(new BeanHandler(wrapperInfo.getName(), wrapperFactory));