public Map<MacAddress, PcapHandle> getOpenHandles() {
        return openHandles;
    }
This code is borrowed and stripped down from the Profinet driver
plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/discovery/ProfinetChannel.java