) (any, error) {
if ns := MustGetNamespaceName(ni.namespaceRegistry, req); ns != namespace.EmptyName {
if IsLongPollGetWorkflowExecutionHistoryRequest(req) {
method = configs.PollWorkflowHistoryAPIName
method = configs.PollActivityExecutionAPIName
}
if _, ok := ni.pollMethods[info.FullMethod]; ok {
if err := ni.Wait(ctx, ns, method, headers.NewGRPCHeaderGetter(ctx)); err != nil {