This method sets attribute of a Managed Object.

def setattr(self, key, value):
		""" This method sets attribute of a Managed Object. """
		if (UcsUtils.FindClassIdInMoMetaIgnoreCase(self.classId) != None):
			if (key in _ManagedObjectMeta[self.classId]):
				propMeta = UcsUtils.GetUcsPropertyMeta(self.classId, key)

				if (propMeta.ValidatePropertyValue(value) == False):
					# print "Validation Failure"
					return False

				if (propMeta.mask != None):
					self.dirtyMask |= propMeta.mask

				self.__dict__[key] = value
			else:
				self.__dict__['XtraProperty'][key] = value
		else:
			""" no such property """
			self.__dict__['XtraProperty'][UcsUtils.WordU(key)] = value