final A action, final R result, final AsyncCallback<Void> callback) {
if (action instanceof AbstractWorkspaceAction<?>) {
AbstractWorkspaceAction<?> wsAction =
(AbstractWorkspaceAction<?>) action;
if (userWorkspaceContext == null || identity == null) {
callback.onFailure(new AuthorizationError(messages
.dispatcherSetupFailed()));
return;
}
wsAction.setEditorClientId(identity.getEditorClientId());
wsAction.setWorkspaceId(userWorkspaceContext.getWorkspaceContext()