class RoleEditorScreen {

    @OnMayClose
    public boolean onMayClose() {
        return !roleEditorWorkflow.isDirty() ||
                Window.confirm(UsersManagementWidgetsConstants.INSTANCE.roleIsDirty());
    }

}