code: def _getExtensionKVArgs(self, aliases=None):
          
          if aliases is None:
              aliases = NamespaceMap()
  
          ax_args = {}
  
          for type_uri, values in self.data.iteritems():
              alias = aliases.add(type_uri)
  
              ax_args['type.' + alias] = type_uri
              ax_args['count.' + alias] = str(len(values))
  
              for i, value in enumerate(values):
                  key = 'value.%s.%d' % (alias, i + 1)
                  ax_args[key] = value
  
          return ax_args
docs: Get the extension arguments for the key/value pairs
          contained in this message.
  
          @param aliases: An alias mapping. Set to None if you don't
              care about the aliases for this request.