@staticmethod
def get_context(event):
    """Get the context for an event. If not found return event_id.

        :param event: Event to get context from.
        :type event: :obj:`eiffellib.events.base_event.BaseEvent`
        """
    for link in event.links.links:
        if link.get('type') == 'CONTEXT':
            context = link.get('target')
            break
    else:
        context = None
    return context
