Using Throwable.getStackTrace instead of Thread.getStackTrace