public function getConnectedAccountForService($service) {
		$accounts = $this->getDocument()->getGraph()->getNodesByType('coid://accountgateways.cloudobjects.io/Account');
		foreach ($accounts as $a) {
			if ($a->getProperty('coid://accountgateways.cloudobjects.io/isForService')
				&& $a->getProperty('coid://accountgateways.cloudobjects.io/isForService')->getId()==$service) return $a;
		}
		return null;
	}