* @return
*/
private static <T> T read(Model model, T java, NativeObject js) throws Exception {
for (String name : js.keys()) {
Object value;
Property property = model.getProperty(name);
if (property.isAttribute()) {
value = transform(js.getProperty(property.name), property.model.type);
} else {
value = read(property.model, make(property.model.type), js.getPropertyAs(NativeObject.class, property.name));
}