public static Thread findThreadById ( final long threadId ) { final Collection < Thread > result = findThreads ( new ThreadIdPredicate ( threadId ) ) ; return result . isEmpty ( ) ? null : result . iterator ( ) . next ( ) ; }
Return the active thread with the specified id .