public static XmlDocument SerializeExternalRequestStateToXmlDocument(ImageServerExternalRequestState data)
		{
			var s = JsmlSerializer.Serialize(data, "ImageServerExternalRequestState",
			                                 new JsmlSerializer.SerializeOptions
				                                 {
					                                 Hook = ExternalRequestHook,
					                                 DataContractTest = IsImageServerExternalRequestContract
				                                 });

			var d = new XmlDocument();
			d.LoadXml(s);
			return d;
		}
		public static string SerializeExternalRequestState(ImageServerExternalRequestState data)
		{
			return JsmlSerializer.Serialize(data, "ImageServerExternalRequestState",
			                                new JsmlSerializer.SerializeOptions
				                                {
					                                Hook = ExternalRequestHook,
					                                DataContractTest = IsImageServerExternalRequestContract
				                                });
		}