section = type.createObject(null);
} else {
UUID id = ObjectUtils.to(UUID.class, map.get("_id"));
section = Query.findById(Object.class, id);
if (section == null) {
section = type.createObject(id);
} else if (!(section instanceof Section)) {
section = type.createObject(null);
} else {
State.getInstance(section).setType(type);
}