  }   if len(failedGroups) == 0 {   return result, nil  }   return result, &ErrGroupDiscoveryFailed{Groups: failedGroups} }  // ServerPreferredResources returns the supported resources with the version preferred by the 