public static void popContext ( ) { Context context = LOCAL . get ( ) ; if ( context != null ) { Context parent = context . getParent ( ) ; if ( parent != null ) { LOCAL . set ( parent ) ; } else { LOCAL . remove ( ) ; } } }
Pop the current context from thread local and restore parent context to thread local .