class StubResourceHandlerServlet extends HttpServlet {

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        String type = req.getParameter("type");
        if (type != null) {
            Path path = getResourcePath(type);
            if (path != null) {
                writeResponse(req, resp, path);
            } else {
                writeError(resp, String.format(ERROR_MESSAGE_TEMPLATE, type, INTERCEPTOR, CONDITION_CHECKER, RESPONSE_FORMATTER, TEMPLATE, JAR,
                        SEQUENCE_HANDLER));
            }
        } else {
            writeError(resp, NO_TYPE_ERR_MSG);
        }
    }

    @Autowired public  StubResourceHandlerServlet(FileListJsonBuilder fileListJsonBuilder, StubResourcePathProvider stubResourcePathProvider, ResourceFileNameHandler resourceFileNameHandler);

}