def __links_for_service(service)
      if service.is_a?(GridService)
        service.grid_service_links.select{|l| l.linked_grid_service.stack == service.stack }.map{ |l| l.linked_grid_service.name }
      else
        (service[:links] || []).select{|l| !l[:name].include? '/'}.map{|l| l[:name] }
      end
    end
def __links_for_service(service)
      if service.is_a?(GridService)
        service.grid_service_links.select{|l| l.linked_grid_service.stack == service.stack }.map{ |l| l.linked_grid_service.name }
      else
        (service[:links] || []).select{|l| !l[:name].include? '/'}.map{|l| l[:name] }
      end
    end
Collect stack-local links for given service.

 @param service [GridService, Hash] GridService model object, or API service hash with symbol keys
 @return [Array<String>] names of linked services