'Allows the given key to be either the transformer\'s class or name,
always returning the transformer\'s name.  This allows
TransformerDataMap to be accessed in either of the following ways:
map[TransformerClass] or
map[\'transformer_name\']'

def _translate_key(self, key):

    try:
        return key.name()
    except AttributeError:
        return key
