public void close ( final Objectify ofy ) { final Deque < Objectify > stack = stacks . get ( ) ; if ( stack . isEmpty ( ) ) throw new IllegalStateException ( "You have already destroyed the Objectify context." ) ; final Objectify popped = stack . removeLast ( ) ; assert popped == ofy : "Mismatched objectify instances; somehow the stack was corrupted" ; }
Pops context off of stack after a transaction completes . For internal housekeeping only .