UserHandler handler = this.getUserHandler( handlerName );
// we don't throw an exception if we are already logged out!
if ( handler != null ) {
List applicationContexts = handler.getApplicationContexts();
if ( applicationContexts != null ) {
ContextManager contextManager = null;
try {
contextManager = (ContextManager)this.manager.lookup(ContextManager.ROLE);
Iterator i = applicationContexts.iterator();
while ( i.hasNext() ) {
final String current = (String)i.next();
contextManager.deleteContext( current );
}
} catch (ServiceException ce) {
throw new ProcessingException("Unable to create session context.", ce);
} finally {
this.manager.release( contextManager);