private static BatchStreamState GetStateBasedOnHttpMethodName(string methodName)
 {
     if (XmlConstants.HttpMethodGet.Equals(methodName, StringComparison.Ordinal))
     {
         return(BatchStreamState.Get);
     }
     else if (XmlConstants.HttpMethodDelete.Equals(methodName, StringComparison.Ordinal))
     {
         return(BatchStreamState.Delete);
     }
     else if (XmlConstants.HttpMethodPost.Equals(methodName, StringComparison.Ordinal))
     {
         return(BatchStreamState.Post);
     }
     else if (XmlConstants.HttpMethodPut.Equals(methodName, StringComparison.Ordinal))
     {
         return(BatchStreamState.Put);
     }
     else if (XmlConstants.HttpMethodMerge.Equals(methodName, StringComparison.Ordinal))
     {
         return(BatchStreamState.Merge);
     }
     else
     {
         throw Error.BatchStreamInvalidHttpMethodName(methodName);
     }
 }