def discover_site(domain)
      url = fetch_host_meta(domain)
      if url.nil?
        return nil # Not a Google Apps domain
      end
      xrds = fetch_xrds(domain, url)
      unless xrds.nil?
          endpoints = OpenID::OpenIDServiceEndpoint.from_xrds(domain, xrds)
          return [domain, OpenID.get_op_or_user_services(endpoints)]
      end
      return nil
    end
def discover_site(domain)
      url = fetch_host_meta(domain)
      if url.nil?
        return nil # Not a Google Apps domain
      end
      xrds = fetch_xrds(domain, url)
      unless xrds.nil?
          endpoints = OpenID::OpenIDServiceEndpoint.from_xrds(domain, xrds)
          return [domain, OpenID.get_op_or_user_services(endpoints)]
      end
      return nil
    end
Handles discovery for a domain