code: func (actor Actor) GetDomainsByNameAndOrganization(domainNames []string, orgGUID string) ([]Domain, Warnings, error) {
  	if len(domainNames) == 0 {
  		return nil, nil, nil
  	}
  
  	var domains []Domain
  	var allWarnings Warnings
  
  	// TODO: If the following causes URI length problems, break domainNames into
  	// batched (based on character length?) and loop over them.
  
  	sharedDomains, warnings, err := actor.CloudControllerClient.GetSharedDomains(ccv2.Filter{
  		Type:     constant.NameFilter,
  		Operator: constant.InOperator,
  		Values:   domainNames,
  	})
  	allWarnings = append(allWarnings, warnings...)
  	if err != nil {
  		return nil, allWarnings, err
  	}
  
  	for _, domain := range sharedDomains {
  		domains = append(domains, Domain(domain))
  		actor.saveDomain(domain)
  	}
  
  	privateDomains, warnings, err := actor.CloudControllerClient.GetOrganizationPrivateDomains(
  		orgGUID,
  		ccv2.Filter{
  			Type:     constant.NameFilter,
  			Operator: constant.InOperator,
  			Values:   domainNames,
  		})
  	allWarnings = append(allWarnings, warnings...)
  	if err != nil {
  		return nil, allWarnings, err
  	}
  
  	for _, domain := range privateDomains {
  		domains = append(domains, Domain(domain))
  		actor.saveDomain(domain)
  	}
  
  	return domains, allWarnings, err
  }
docs: // GetDomainsByNameAndOrganization returns back a list of domains given a list
  // of domains names and the organization GUID. If no domains are given, than this
  // command will not lookup any domains.