class OperationModeStatusServlet extends HttpServlet {

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("application/json");
        PrintWriter out = resp.getWriter();
        boolean proxyModeOn = proxyModeToggle.isProxyModeOn();
        boolean stubModeOn = routingService.isStubModeOn();
        boolean wilmaModeOn = !proxyModeOn && !stubModeOn;
        out.write("{\"proxyMode\":" + proxyModeOn + ",\"stubMode\":" + stubModeOn + ",\"wilmaMode\":" + wilmaModeOn + "}");
        out.flush();
        out.close();
    }

    @Autowired public  OperationModeStatusServlet(ProxyModeToggle proxyModeToggle, RoutingService routingService);

}