if (connectionStatus != DBStatus.CONNECTED)
{
response.redirect("/dberror");
}
ListPageServiceImpl listPageService = new ListPageServiceImpl(db);
Map<String, Object> model = new HashMap<String, Object>();
model.put("view", listPageService.getFilmsListPageView());
logger.debug("Started route to /list");
return modelAndView(model, "src/main/java/resources/templates/listFilmsPage.vm");
}