Class clazz = classInfo.getType();
Class[] interfaces = new Class[]{clazz};
return Proxy.newProxyInstance(clazz.getClassLoader(), interfaces, handler);
}
Object bean = createNewInstance(beanInfo);
for (String name : compositeMetaType.keySet())
{
MetaValue itemValue = compositeValue.get(name);
PropertyInfo propertyInfo = beanInfo.getProperty(name);
Object value = unwrap(itemValue, propertyInfo.getType());
propertyInfo.set(bean, value);