private void writeLoads(VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException { for (Load l : vl.getLoads()) { if (!context.getFilter().test(l)) { continue; } LoadXml.INSTANCE.write(l, vl, context); } }
for (Load l: vl.getLoads()) { Terminal t = l.getTerminal(); if (t.getBusView().getBus() != null) {