AnnotationBoundary a = AnnotationBoundaryJsoImpl.create();
if (map.endSize() == 0 && map.changeSize() == 0) {
a.setEmpty(true);
} else {
for (int i = 0; i < map.endSize(); i++) {
a.addEnd(map.getEndKey(i));
}
for (int i = 0; i < map.changeSize(); i++) {
a.addChange(
keyValueUpdate(map.getChangeKey(i), map.getOldValue(i), map.getNewValue(i)));
}