code: def getattr(self, key):
  		
  		if ((key == "classId") and (self.__dict__.has_key(key))):
  			return self.__dict__[key]
  
  		if UcsUtils.FindClassIdInMoMetaIgnoreCase(self.classId):
  			if self.__dict__.has_key(key):
  				if key in _ManagedObjectMeta[self.classId]:
  					""" property exists """
  					return self.__dict__[key]
  			else:
  				if self.__dict__.has_key('XtraProperty'):
  					if self.__dict__['XtraProperty'].has_key(key):
  						return self.__dict__['XtraProperty'][UcsUtils.WordU(key)]
  					else:
  						raise AttributeError(key)
  				else:
  					# TODO: Add Warning/Error messages in Logger.
  					print "No XtraProperty in mo:", self.classId, " key:", key
  		else:
  			""" property does not exist """
  			if self.__dict__['XtraProperty'].has_key(key):
  				return self.__dict__['XtraProperty'][UcsUtils.WordU(key)]
  			elif key == "Dn" or key == "Rn":
  				return None
  			else:
  				raise AttributeError(key)
docs: This method gets attribute value of a Managed Object.