if (response instanceof SuccessCommandResponse) {
SuccessCommandResponse successResponse = (SuccessCommandResponse) response;
if (successResponse.isSuccess()) {
userToken = null;
Authentication.this.userId = null;
manager.fireEvent(new LogoutSuccessEvent());
loginUser(userId, password, callback);
} else {
manager.fireEvent(new LogoutFailureEvent());
}
}