private void instanceParsing(Node currentNode)
    {
        Instance instance = new Instance();
        for (int i = 0; i < currentNode.getAttributes().getLength(); i++)
        {
            if ("component".equals(currentNode.getAttributes().item(i).getNodeName()))
            {
                if (null != currentNode.getAttributes().item(i).getNodeValue())
                {
                    instance.setType(currentNode.getAttributes().item(i).getNodeValue());
                }
            }
            if ("name".equals(currentNode.getAttributes().item(i).getNodeName()))
            {
                if (null != currentNode.getAttributes().item(i).getNodeValue())
                {
                    instance.setName(currentNode.getAttributes().item(i).getNodeValue());
                }
            }
        }
        if (null != this.nodeInfo && 1 < nodeInfo.getTotalNodeNumbers ( ))
        {
            this.nodeInfo.setInstance ( instance );
        }
        else
        {
            codeGenerator.writeInstance(instance);
            instance = null;
        }
    }