}
private void doService(HttpServletRequest request, HttpServletResponse response) throws RuntimeException, IOException {
try {
DefaultSherpaRequest sherpaRequest = new DefaultSherpaRequest();
sherpaRequest.setApplicationContext(GenericApplicationContext.getApplicationContext(getServletContext()));
sherpaRequest.doService(request, response);
} catch (SherpaInvalidUsernamePassword e) {
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.setContentType("application/json");
LOGGER.info(msg("INFO "+e.getMessage() ));