public MyObject update(MyObject object) {
object.setMyField("updated field by server side code");
object.setMyTransientField("this will not be serialized");
MyChildObject childObject = new MyChildObject("this is a child !");
childObject.setMyChildTransientField("this will not be serialized too");
childObject.setMyField("the field inherited from the parent has been updated !");
childObject.setMyTransientField("this field is not expected to be serialized too");
object.getMyChildObjects().add(childObject);
return object;
}