// RegisterServiceProcessor adds a service-level processor to the endpoint keyed by its name.
// Returns an error if a processor with the same name is already registered.
func (p *NexusEndpointProcessor) RegisterServiceProcessor(processor *NexusServiceProcessor) error {
nexus_operation_processor.go
if _, exists := p.serviceProcessors[processor.name]; exists {
return fmt.Errorf("service processor %q already registered", processor.name)
}
return nil
}