public TerritoriesProxyStub Territories_QueryForEntity(string serializedQuery)
        {
            TerritoriesQuery query = TerritoriesQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(TerritoriesQuery), AllKnownTypes) as TerritoriesQuery;

            Territories obj = new Territories();

            if (obj.Load(query))
            {
                return(obj);
            }

            return(null);
        }