this.class.classLoader.class.classes.each {
it.metaClass.printStackTrace = { ->
Thread.currentThread().stackTrace.each { element ->
println "\tat ${element.className}.${element.methodName}(${element.fileName}:${element.lineNumber})"
}
}
}