class StubConfigHandlerServlet extends HttpServlet {

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        String sourceParameter = req.getParameter("groupname");
        if (sourceParameter != null) {
            byte[] xml = getActualUsedJson(sourceParameter);
            if (xml != null) {
                setHeader(req, resp, sourceParameter);
                writeStubConfigToResponse(req, resp, xml);
            } else {
                writeErrorToResponse(resp);
            }
        }
    }

    @Autowired public  StubConfigHandlerServlet(JsonBasedObjectTransformer jsonBasedObjectTransformer, StubResourceHolder stubResourceHolder, ByteArrayConverter byteArrayConverter);

}