Detecting Java Threads in Deadlock with Groovy and JMX