Using Thread.getCurrentThread().getStackTrace() instead of throwing ex