def METHOD_NAME(cls, analyzer_class):
    """Registers an analyzer class.
    The analyzer classes are identified by their lower case name.
    Args:
        analyzer_class (type): the analyzer class to register.
    Raises:
        KeyError: if class is already set for the corresponding name.
    """
    analyzer_name = analyzer_class.NAME.lower()
    if analyzer_name in cls._class_registry:
        raise KeyError(
            "Class already set for name: {0:s}.".format(analyzer_class.NAME)
        )
    cls._class_registry[analyzer_name] = analyzer_class