return ab;
}
ab = factory.create(clazz, model);
// suppressing warnings for unchecked and raw types as the value must always
// be of type ctx.getType
ab.accept(new AutoBeanVisitor() {
@SuppressWarnings({"unchecked", "rawtypes"})
@Override
public boolean visitReferenceProperty(String propertyName, AutoBean<?> value, PropertyContext ctx) {
ctx.set(getAutoBean(value.as(), (Class) ctx.getType()));
return true;