Parses <Regime>

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

def parse_regime(self, node):
        """
        Parses <Regime>

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

        if 'name' in node.lattrib:
            name = node.lattrib['name']
        else:
            name = ''

        if 'initial' in node.lattrib:
            initial = (node.lattrib['initial'].strip().lower() == 'true')
        else:
            initial = False

        regime = Regime(name, self.current_dynamics, initial)
        old_regime = self.current_regime
        self.current_dynamics.add_regime(regime)
        self.current_regime = regime

        self.process_nested_tags(node)

        self.current_regime = old_regime