@classmethod
def get_collection_name(cls):
    """ Returns the collection name used by the class.  If the ``config_collection_name``
            attribute is set it is used, otherwise the name of the class is used."""
    if not hasattr(cls, 'config_collection_name'):
        return cls.__name__
    return cls.config_collection_name
