private async Task AddEndpointToHearing(Guid hearingId, HearingDetailsResponse hearing,
                                         EditEndpointRequest endpoint)
 {
     _logger.LogDebug("Adding endpoint {EndpointDisplayName} to hearing {Hearing}",
                      endpoint.DisplayName, hearingId);
     var addEndpointRequest = new AddEndpointRequest
     {
         DisplayName             = endpoint.DisplayName,
         DefenceAdvocateUsername = endpoint.DefenceAdvocateUsername
     };
     await _bookingsApiClient.AddEndPointToHearingAsync(hearing.Id, addEndpointRequest);
 }