@Autowired
private InteractionFactory interactionFactory;
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Context context = getContext(request);
Interaction interaction = interactionFactory.create(context, request.getPathInfo());
if (interaction != null) {
ViewData view = interaction.execute(request, response);
forwardToView(request, response, view);
}
}