'Figure out what I\'m called, return a name if there is one.
Layer names are stored in the Configuration object, so
config.layers must be inspected to find a matching name.'

def name(self):

    for (name, layer) in self.config.layers.items():
        if (layer is self):
            return name
    return None
