class UserEditorScreen {

    void onEditUserEvent(@Observes final OnEditEvent onEditEvent) {
        if (checkEventContext(onEditEvent,
                              userEditorWorkflow.getUserEditor())) {
            try {
                User user = (User) onEditEvent.getInstance();
                this.userId = user.getIdentifier();
                changeTitleNotification.fire(new ChangeTitleWidgetEvent(placeRequest,
                                                                        new SafeHtmlBuilder()
                                                                                .appendEscaped(UsersManagementWorkbenchConstants.INSTANCE.editUser(user.getIdentifier()))
                                                                                .toSafeHtml().asString()));
            } catch (ClassCastException e) {
            }
        }
    }

}