def add_to_revision(object, revision)
            object.set_indirect(true)
            object.set_document(self)

            object.no, object.generation = allocate_new_object_number if object.no == 0

            revision.body[object.reference] = object

            object.reference
        end
def add_to_revision(object, revision)
            object.set_indirect(true)
            object.set_document(self)

            object.no, object.generation = allocate_new_object_number if object.no == 0

            revision.body[object.reference] = object

            object.reference
        end
Adds a new object to a specific revision.
 If this object has no version number, then a new one will be automatically
 computed and assignated to him.

 It returns a Reference to this Object.
 _object_:: The object to add.
 _revision_:: The revision to add the object to.