Element newSensorElement = (Element)(myXMLDocument.createElement(getCorbaName(sensorToAdd)));
Element newSensorElement = (myXMLDocument.createElement(getCorbaName(sensorToAdd)));
    private void createSensorElement(GenericSensorImpl sensorToAdd, SimBioModuleImpl moduleToWatch) {        Element newSensorElement = (Element)(myXMLDocument.createElement(getCorbaName(sensorToAdd)));        newSensorElement.setAttribute("name", sensorToAdd.getModuleName());        newSensorElement.setAttribute("input", moduleToWatch.getModuleName());        newSensorElement.setAttribute("index", "0");        appendSensor(getResourcePackageName(sensorToAdd), newSensorElement);    }