};
}
private ICompletionHandle createLogoutHandle(UserCredentials credentials) {
final ILogoutEvent logoutEvent = new LogoutEvent(credentials);
return new ICompletionHandle() {
public void onCompletionSuccess() {
notifyLogoutStatus(true, logoutEvent);
}
public void onCompletionFailure(RollbackReason reason) {
logoutEvent.setRollbackReason(reason);
notifyLogoutStatus(false, logoutEvent);
}
};
}