/// <inheritdoc />
 public ITemplateResponse GetTemplate(IGetTemplateRequest getTemplateRequest)
 {
     return(this.Dispatch <IGetTemplateRequest, GetTemplateRequestParameters, TemplateResponse>(
                getTemplateRequest,
                (p, d) => RawDispatch.IndicesGetTemplateDispatch <TemplateResponse>(
                    p.DeserializationState((Func <IElasticsearchResponse, Stream, TemplateResponse>)DeserializeTemplateResponse)
                    )
                ));
 }
 /// <inheritdoc />
 public ITemplateResponse GetTemplate(string name, Func <GetTemplateDescriptor, GetTemplateDescriptor> getTemplateSelector = null)
 {
     getTemplateSelector = getTemplateSelector ?? (s => s);
     return(this.Dispatch <GetTemplateDescriptor, GetTemplateRequestParameters, TemplateResponse>(
                d => getTemplateSelector(d.Name(name)),
                (p, d) => RawDispatch.IndicesGetTemplateDispatch <TemplateResponse>(
                    p.DeserializationState((Func <IElasticsearchResponse, Stream, TemplateResponse>)DeserializeTemplateResponse)
                    )
                ));
 }