private IAttributeDefinition HookupAttributeDefinition(string assettypetoken, string name)
		{
			XmlDocument doc = new XmlDocument();
			using (Stream stream = _connector.GetData(assettypetoken + "/" + name))
				doc.Load(stream);

			_versionString = doc.DocumentElement.Attributes["version"].Value;

			AttributeDefinition attribdef = new AttributeDefinition(this, doc.DocumentElement);
			SaveAttributeDefinition(attribdef);

			return attribdef;
		}
		private IAttributeDefinition HookupAttributeDefinition(string assettypetoken, string name)
		{
			XmlDocument doc = new XmlDocument();
		    Stream stream = GetStreamFromAppropiateConnector(assettypetoken + "/" + name);
    		doc.Load(stream);
            stream.Dispose();

			_versionString = doc.DocumentElement.Attributes["version"].Value;

			AttributeDefinition attribdef = new AttributeDefinition(this, doc.DocumentElement);
			SaveAttributeDefinition(attribdef);

			return attribdef;
		}