ContextManager contextManager;
contextManager = (ContextManager) this.manager.lookup(ContextManager.ROLE);
// add the provider for the authentication context
try {
AuthenticationContextProvider contextProvider = new AuthenticationContextProvider();
contextManager.addSessionContextProvider(contextProvider, AuthenticationConstants.SESSION_CONTEXT_NAME);
} catch (ProcessingException local) {
throw new ServiceException("Unable to register provider for authentication context.", local);
}
}