class UserEditorScreen {

    void onShowUserEvent(@Observes final OnShowEvent onShowEvent) {
        if (checkEventContext(onShowEvent,
                              userEditorWorkflow.getUserEditor())) {
            try {
                User user = (User) onShowEvent.getInstance();
                this.userId = user.getIdentifier();
                final String title = new SafeHtmlBuilder()
                        .appendEscaped(UsersManagementWorkbenchConstants.INSTANCE.showUser(user.getIdentifier()))
                        .toSafeHtml().asString();
                changeTitleNotification.fire(new ChangeTitleWidgetEvent(placeRequest,
                                                                        title));
            } catch (ClassCastException e) {
            }
        }
    }

}