Disallow duplicate annotation ids by storing them in a HashSet.  This fixes an error that we encountered that we weren't able to reproduce, and prevents junk from being inserted into the database.  If duplicates are detected, an error message is printed to the log so we can investigate the cause if the problem ever occurs again.