*/
protected final void replaceLogger(Logger log, String logField, String originalLogName, int index) throws Exception {
invokeNoopServlet("/servlet");
initRequestContext();
SessionRequestContext rc = getFieldValue(session, "requestContext", SessionRequestContext.class);
SessionConfig config = rc.getSessionConfig();
SecurityLogger slog = getFieldValue(config.getSessionInterceptors()[index], logField, SecurityLogger.class);
Field field = getAccessibleField(slog.getClass(), "log");
Logger originalLog = (Logger) field.get(slog);