private ServletException wrapException(Exception e, String msg) throws ServletException {
this.logger.error(msg, e);
ServletException servletException = new ServletException(msg, e);
if (servletException.getCause() == null) {
servletException.initCause(e);
}
return servletException;
}
}