question: private void cleanUp ( Reference < ? > reference ) throws ShutDown { Method finalizeReferentMethod = getFinalizeReferentMethod ( ) ; do { reference . clear ( ) ; if ( reference == frqReference ) { throw new ShutDown ( ) ; } try { finalizeReferentMethod . invoke ( reference ) ; } catch ( Throwable t ) { logger . log ( Level . SEVERE , "Error cleaning up after reference." , t ) ; } } while ( ( reference = queue . poll ( ) ) != null ) ; }
target:  Cleans up a single reference. Catches and logs all throwables.