processRequest(req, resp);
}
private void processRequest(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {
try {
final WildFlyLogContextSelector wildflySelector = getFieldValue(LoggingExtension.class, "CONTEXT_SELECTOR", WildFlyLogContextSelector.class);
response.getWriter().print(wildflySelector.registeredCount());
} catch (Exception e) {
throw new ServletException(e);
}
}