private void readFlowCharts(Element flowcharts) throws MaltChainedException {
NodeList flowChartList = flowcharts.getElementsByTagName("flowchart");
for (int i = 0; i < flowChartList.getLength(); i++) {
String flowChartName = ((Element)flowChartList.item(i)).getAttribute("name");
if (!chartSpecifications.containsKey(flowChartName)) {
ChartSpecification chart = new ChartSpecification();
chartSpecifications.put(flowChartName, chart);
chart.read((Element)flowChartList.item(i), this);
} else {
throw new FlowException("Problem parsing the flow chart file. The flow chart with the name "+flowChartName+" already exists. ");
}
}
}