This function will examine the Annotations stored in the specified
Document to find the maximum used Annotation Id. This function will
make the proper arrangments so as the next Annotation that will be
added to this Document to receive as Id the following Id after the
identified maximum Ids.
Return Value:
This function will return the Id that will be received by the next
Annotation that will be added to this Document.