throw new SienaException("Invalid time");
}
}
String action = root.getName();
if("insert".equals(action)) {
Model obj = parseEntity(root, classLoader);
obj.insert();
return simpleResponse(obj, true);
} else if("update".equals(action)) {
parseEntity(root, classLoader).update();
} else if("delete".equals(action)) {
parseEntity(root, classLoader).delete();
} else if("get".equals(action)) {
Model obj = parseEntity(root, classLoader);
obj.get();
return simpleResponse(obj, false);
} else if("query".equals(action)) {
// TODO: convert document to QueryBase
String clazzName = root.attributeValue("class");