private void runQueryUntilResultIsZero(String deleteNodesAndRels) {
beginTransaction();
Query deleteNodesAndRelQuery = cdoManager.createQuery(deleteNodesAndRels, DeletedCount.class);
Long result;
do {
result = ((DeletedCount) deleteNodesAndRelQuery.execute().getSingleResult()).getDeleted();
} while (result > 0);
commitTransaction();
}
@Override