docs: def _map_name(self, name, mapper):
          """
          Maps a spec name to a new value based on the provided mapper
          """
          if mapper is not None:
              if isinstance(mapper, basestring):
                  name = mapper + name
              try:
                  name = mapper[name]
              except KeyError:
                  pass
          return name