/**
  *
  * @param ServiceLocatorInterface $serviceLocator            
  * @param DataTransferAgentInterface $dataTransferAgent            
  * @param string $endpoint            
  * @param Config $config            
  * @throws ProcessException
  */
 private function injectConnectionParameters(ServiceLocatorInterface $serviceLocator, DataTransferAgentInterface $dataTransferAgent, $endpoint, Config $config)
 {
     $connectionParameters = $config->data_endpoints->{$endpoint};
     if (is_null($connectionParameters)) {
         throw new ProcessException($this->translate($serviceLocator, "No connection seems configured for application") . " " . $endpoint);
     }
     $dataTransferAgent->setConnectionParameters($connectionParameters);
 }