Parses <EventConnection>

        @param node: Node containing the <EventConnection> element
        @type node: xml.etree.Element

def parse_event_connection(self, node):
        """
        Parses <EventConnection>

        @param node: Node containing the <EventConnection> element
        @type node: xml.etree.Element
        """

        if 'from' in node.lattrib:
            from_ = node.lattrib['from']
        else:
            self.raise_error('<EventConnection> must provide a source (from) component reference.')

        if 'to' in node.lattrib:
            to = node.lattrib['to']
        else:
            self.raise_error('<EventConnection> must provide a target (to) component reference.')

        source_port = node.lattrib.get('sourceport', '')
        target_port = node.lattrib.get('targetport', '')
        receiver = node.lattrib.get('receiver', '')
        receiver_container = node.lattrib.get('receivercontainer', '')

        ec = EventConnection(from_, to, source_port, target_port, receiver, receiver_container)
        self.current_structure.add_event_connection(ec)