When I see a stack trace I say "aha! an error".
You don't seem to be doing anything wrong, except that the approach of using getAnnots to make clones of annotations in the general case seems improbably complicated-to-impossible, though it may work in particular cases.
So, again: You mentioned trying to use Export/Import methods, but I do not see that code.