code: def getProperty(self, key, strip=True):
          ''' Gets the property value for key '''
  
          self.__checkTransport()
          import collections
          MAP_PROPS = collections.OrderedDict([
              (re.compile('display.width'), self.__getDisplayWidth),
              (re.compile('display.height'), self.__getDisplayHeight),
              (re.compile('display.density'), self.__getDisplayDensity),
              (re.compile('display.orientation'), self.__getDisplayOrientation),
              (re.compile('.*'), self.__getProp),
          ])
          '''Maps properties key values (as regexps) to instance methods to obtain its values.'''
  
          for kre in MAP_PROPS.keys():
              if kre.match(key):
                  return MAP_PROPS[kre](key=key, strip=strip)
          raise ValueError("key='%s' does not match any map entry"f getProperty(self, key, strip=True):
          ''' Gets the property value for key '''
  
          self.__checkTransport()
          import collections
          MAP_PROPS = collections.OrderedDict([
              (re.compile('display.width'), self.__getDisplayWidth),
              (re.compile('display.height'), self.__getDisplayHeight),
              (re.compile('display.density'), self.__getDisplayDensity),
              (re.compile('display.orientation'), self.__getDisplayOrientation),
              (re.compile('.*'), self.__getProp),
          ])
          '''Maps properties key values (as regexps) to instance methods to obtain its values.'''
  
          for kre in MAP_PROPS.keys():
              if kre.match(key):
                  return MAP_PROPS[kre](key=key, strip=strip)
          raise ValueError("key='%s' does not match any map entry")
docs: Gets the property value for key