/**
  * Get a resource URL from its vCloud entity ID.
  *
  * @param VMware_VCloud_SDK_Service $service
  * @param string $eid  vCloud entity ID
  * @return string|null
  * @since Version 1.5.0
  */
 public static function getUrlByEntityId($service, $eid)
 {
     $url = $service->getBaseUrl() . '/entity/' . $eid;
     $entity = $service->get($url);
     $links = self::getContainedLinks(null, 'alternate', $entity);
     if (1 == count($links)) {
         return $links[0]->get_href();
     }
     return null;
 }