public static void save(String id) throws Exception {
ObjectType type = ObjectType.get(getControllerClass());
notFoundIfNull(type);
SienaSupport object = type.findById(id);
object = object.edit("object", params);
// Look if we need to deserialize
for (ObjectField field : type.getFields()) {
if (field.type.equals("serializedText") && params.get("object." + field.name) != null) {
Field f = object.getClass().getDeclaredField(field.name);
f.set(object, CRUD.collectionDeserializer(params.get("object." + field.name),(Class)((ParameterizedType) f.getGenericType()).getActualTypeArguments()[0]));