Describe the bug
If the UIMA-v2 mode that retains references to all created annotations is active, then the temporary annotations created by the Subiterator class remain in the CAS.
Expected behavior
When creating a temporary annotation, the creation should be guarded by a try/catch that temporarily turns off the UIMA-v2 mode.
Please complete the following information: