public RegionCollectionProxyStub Region_QueryForCollection(string serializedQuery)
		{
			RegionQuery query = RegionQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(RegionQuery), AllKnownTypes) as RegionQuery;

			RegionCollection coll = new RegionCollection();
			if (coll.Load(query))
			{
				return coll;
			}

			return null;
		}
		public RegionCollectionProxyStub Region_LoadAll()
		{
			RegionCollection coll = new RegionCollection();
			if (coll.LoadAll())
			{
				return coll;
			}

			return null;
		}		
		public RegionCollection Region_LoadByDynamic(string serializedQuery)
		{
			RegionQuery query = RegionQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(RegionQuery), AllKnownTypes) as RegionQuery;

			RegionCollection coll = new RegionCollection();
			coll.es.IsLazyLoadDisabled = true;
			coll.Load(query);
			return coll;
		}
		public RegionCollection Region_LoadAll()
		{
			RegionCollection coll = new RegionCollection();
			coll.es.IsLazyLoadDisabled = true;
			coll.LoadAll();
			return coll;
		}
		public jsResponse<RegionCollection, Region> RegionCollection_Save(RegionCollection collection)
		{
			jsResponse<RegionCollection, Region> response = new jsResponse<RegionCollection, Region>();

			try
			{
				collection.Save();
				response.collection = collection;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
		public jsResponse<RegionCollection, Region> RegionCollection_LoadAll()
		{
			jsResponse<RegionCollection, Region> response = new jsResponse<RegionCollection, Region>();

			try
			{
				RegionCollection collection = new RegionCollection();
				collection.LoadAll();
				response.collection = collection;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}