private static Throwable getCause(Throwable e) { if (e.getCause() == null) return e; return getCause(e.getCause()); }