JDO76018: Unable to flush persistent instances due
to circular dependencies. (ID 6500961)
Description
This exception is thrown if a chain of foreign key dependencies between
instances modified (or created) in a transaction results in a circular dependency
in the database.
Solution
Split the original set of operations into multiple transactions.