Element newFlowRateElement = (Element)(myXMLDocument.createElement(currentFlowRateType));
Element newFlowRateElement = (myXMLDocument.createElement(currentFlowRateType));
    private void setConsumersOrProducerFlowRates(List edges, ModuleNode currentNode, Node currentElementNode, String storeFieldName) {        for (Iterator iter = edges.iterator(); iter.hasNext();){            ModuleEdge currentEdge = (ModuleEdge)iter.next();            if (currentEdge.isSensed())                createSensorElement(currentEdge.getSensorImpl(), currentEdge.getActiveModule());            if (currentEdge.isActuated())                createActuatorElement(currentEdge.getActuatorImpl(), currentEdge.getActiveModule());            String currentFlowRateType = currentEdge.getFlowRateType();            Element newFlowRateElement = (Element)(myXMLDocument.createElement(currentFlowRateType));            createFlowRateAttributes(currentEdge.getOperations(), newFlowRateElement);            newFlowRateElement.setAttribute(storeFieldName, currentEdge.getPassiveModuleImpl().getModuleName());            currentElementNode.appendChild(newFlowRateElement);        }    }