protected function _getRemoteSPsMetaData() { $metadata = array(); $sPs = $this->_serviceRegistry->getSPList(); foreach ($sPs as $sPEntityId => $sP) { try { $metadata[$sPEntityId] = self::convertServiceRegistryEntityToCortoEntity($sP); } catch (Exception $e) { // Whoa, something went wrong trying to convert the SR entity to a Corto entity // We can't use this entity, but we can continue after we've reported // this serious error $application = EngineBlock_ApplicationSingleton::getInstance(); $application->reportError($e); continue; } } return $metadata; }