private static boolean checkForRecursionAndSet ( ) { if ( recursionMarker . get ( ) == null ) { recursionMarker . set ( Boolean . TRUE ) ; return false ; } else { return true ; // recursion detected. } }
Check for recursion .