private static RestRequest CreateRestRequest <TResourceIdentifier>(RequestBase <TResourceIdentifier> request) where TResourceIdentifier : class, IResourceIdentifier
        {
            var restRequest = new RestRequest(request.GetResourceIdentifier().Uri, GetMethod(request.GetHttpMethod()))
            {
                JsonSerializer = new NewtonsoftJsonSerializer()
            };

            AddParametersFromRequest(restRequest, request);

            return(restRequest);
        }