private void sendActiveAppsToModel() { if (mSapaAppService == null) { Log.w(TAG, "Cannot send active apps to model: sapa app service is null"); return; } try { IList <SapaAppInfo> activeApps = mSapaAppService.AllActiveApp; if (activeApps != null) { foreach (SapaAppInfo appInfo in activeApps) { mFcSapaModel.insertApp(appInfo, getAppType(appInfo.App)); } } } catch (SapaConnectionNotSetException) { Log.w(TAG, "Cannot send active apps to model: sapa connection not set"); } }