/* This method is called by a background thread to destroy sessions (among other things)
* so we need to apply appropriate context to the thread to expose JNDI, etc.
*/
@Override
public void backgroundProcess() {
BeforeAfterContext beforeAfterContext = null;
if (beforeAfter != null) {
beforeAfterContext = new BeforeAfterContext(contextCount);
beforeAfter.before(beforeAfterContext, null, null, BeforeAfter.EDGE_SERVLET);
}
try {
super.backgroundProcess();
} finally {