public static XmlDocument SerializeExternalQueryToXmlDocument(ImageServerExternalQuery data)
		{
			var s = JsmlSerializer.Serialize(data, "ImageServerExternalQuery",
			                                 new JsmlSerializer.SerializeOptions
				                                 {
					                                 Hook = ExternalQueryHook,
					                                 DataContractTest = IsImageServerExternalQueryContract
				                                 });

			var d = new XmlDocument();
			d.LoadXml(s);
			return d;
		}
		public static string SerializeExternalQuery(ImageServerExternalQuery data)
		{
			return JsmlSerializer.Serialize(data, "ImageServerExternalQuery",
			                                new JsmlSerializer.SerializeOptions
				                                {
					                                Hook = ExternalQueryHook,
					                                DataContractTest = IsImageServerExternalQueryContract
				                                });
		}