@classmethod
def register_component(cls, component):
    """Register a Component."""
    try:
        cls.component_by_name(component.name)
        raise Exception('Component with name %s exists' % component.name)
    except IndexError:
        cls.components.append(component)
