498499500501502503504505506507508
try { if (extensionEnabled) { AuthenticatorProxy proxy = new AuthenticatorProxy(authenticator, null, null); proxy.logout(request); } else { authenticator.logout(request); } } catch(Exception ex) { throw new RuntimeException(ex); }