if (e.getCause() != null)
Throwable e2 = e.getCause(); if (e2 != null)
   private void logCause(Throwable e)   {      if (e.getCause() != null)      {         log.error("Cause of exception:", e.getCause());      }   }