question: public void add ( final Runnable task ) { synchronized ( cleanup ) { if ( ran ) { throw new IllegalStateException ( "Request has already been cleaned up" ) ; } cleanup . add ( task ) ; } }
target:  Register a task to be completed after the request ends. 