private void parseConnection(NodeList childNodes)
    {
        Connect connect = new Connect();
        boolean flagOpen = false;
        boolean flagClosed = false;
        for (int count = 0; count < childNodes.getLength(); count++)
        {
            Node node = childNodes.item(count);
            if ("from".equals(node.getNodeName().toLowerCase()))
            {
                extractFromAttributes(connect, node);
                flagOpen = true;
                continue;
            }
            
            if ("to".equals(node.getNodeName().toLowerCase()))
            {
                extractToAttributes(connect, node);
                flagClosed = true;
                continue;
            }
            
            if (flagOpen && flagClosed && !isInterConnect)
            {
                codeGenerator.writeConnection(connect);
                flagClosed = flagOpen = false;
                continue;
            }
            else if (isInterConnect)
            {
                this.nodeInfo.setConnect(connect);
                continue;
            }
        }
    }