'Returns a mapper for the registered kind.
Returns:
A Mapper instance.
Raises:
ConfigurationError: if no Mapper is defined for kind'

def GetMapper(self, kind):

    if (not self.mapper):
        try:
            self.mapper = Mapper.RegisteredMapper(kind)
        except KeyError:
            logger.error(('No    Mapper    defined    for    kind    %s.' % kind))
            raise ConfigurationError(('No    Mapper    defined    for    kind    %s.' % kind))
    return self.mapper
