public async Task <dynamic> GetEhcMetadata()
        {
            var         accessToken = _defraAuthenticationService.GetFromCache("accessToken");
            EhcMetadata metadata    = await defraTradeApiGateway
                                      .AppendPathSegments("trade-sci-exports", "uat", "v1", "ehc-metadata")
                                      .WithOAuthBearerToken(accessToken.access_token)
                                      .GetJsonAsync <EhcMetadata>(CancellationToken.None);

            return(metadata);
        }
        public async Task <List <ReferenceDataMeta> > GetEhcMetadata()
        {
            List <ReferenceDataMeta> metadata;

            try
            {
                var accessToken = _defraAuthenticationService.GetFromCache("accessToken");

                metadata = await defraTradeApiGateway
                           .AppendPathSegments("trade-sci-reference-data", "uat", "v1", "metadata")
                           .WithOAuthBearerToken(accessToken.access_token)
                           .GetJsonAsync <List <ReferenceDataMeta> >(CancellationToken.None);
            }
            catch (Exception)
            {
                metadata = new List <ReferenceDataMeta>(0);
            }

            return(metadata);
        }