code: function createCustomFieldClient({outgoingDispatcher, incomingDispatcher, instanceProps, contextProps})
  {
    let endpoint = null;
    switch (contextProps.contextType) {
      case 'person':
        endpoint = `people/${contextProps.entityId}`;
        break;
      case 'organization':
        endpoint = `organizations/${contextProps.entityId}`;
        break;
      case 'ticket':
        endpoint = `tickets/${contextProps.entityId}`;
        break;
    }
  
    if (endpoint) {
      return new CustomFieldsClient({
        outgoingDispatcher,
        instanceId: instanceProps.instanceId,
        endpoint
      });
    }
  
    return null;
  }
docs: @ignore
  
  @param {AppEventEmitter} outgoingDispatcher the outgoing events dispatcher
  @param {AppEventEmitter} incomingDispatcher the incoming events dispatcher
  @param {InstanceProps} instanceProps the instance properties bag
  @param {ContextProps} contextProps the context properties bag
  
  @return {CustomFieldsClient|null}