public void logout() throws NotLoggedInException {
if (getConfig().isEnabled()) {
checkLoggedIn();
getAuthenticator().unAuthenticate();
Beans.getBeanManager().fireEvent(new AfterLogoutSuccessful() {
private static final long serialVersionUID = 1L;
});
}
}