def GetMapper(self):
    """Returns a mapper for the registered kind.

    Returns:
      A Mapper instance.

    Raises:
      ConfigurationError: if no Mapper is defined for self.kind
    """
    if not self.mapper:
      try:
        self.mapper = Mapper.RegisteredMapper(self.kind)
      except KeyError:
        logger.error(self.kind % 'No Mapper defined for kind %s.')
        raise ConfigurationError('No Mapper defined for kind %s.' % self.kind)
    return self.mapper
dataset/ETHPy150Open IanLewis/kay/kay/management/gae_bulkloader.py/RequestManager.GetMapper/swapped operands of `%`