logger.error (e.getMessage (), e);
throw new IllegalStateException (e.getMessage());
} catch (InvocationTargetException e) {
if (e.getTargetException ()
instanceof PrivilegedActionException) {
PrivilegedActionException pe
= (PrivilegedActionException)e.getTargetException();
if (pe.getException () instanceof IOException) {
throw (IOException)pe.getException ();
}
if (pe.getException() instanceof ServletException) {
throw (ServletException)pe.getException ();
}
}
logger.error (e.getMessage (), e);
throw new IllegalStateException (e.getMessage());
}