Hi Yuriy,
The issue should be resolved the same way as the one described in
viewtopic.php?f=13&t=7661.
Regarding the annotationRefIndex argument, you can view it as a counter of all the annotation references within a given Image block. See https://github.com/openmicroscopy/biofo ... .java#L650 for an example of code which is creating multiple annotations of multiple types and linking them to an image where annotationRefIndex gets incremented every time.
Best,
Sebastien