def _create_ui_service(self, model_service):

        # Create the menu manager representing the context menu we show when
        # nothing is selected in the project view.
        menu_manager = self._get_no_selection_context_menu_manager()

        # Get the UI service factory.
        ui_service_factory = self._get_contributed_ui_service_factory()

        # Create the ui service instance
        ui_service = ui_service_factory.create_ui_service(model_service,
            menu_manager)

        return ui_service
Returns the residuals for the model.
dataset/ETHPy150Open enthought/envisage/envisage/ui/single_project/project_plugin.py/ProjectPlugin._create_ui_service--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/regression/mixed_linear_model.py/MixedLMResults.resid