if (!deviceNode.nodeExists("dcmAuditRecordRepository"))
return;
List<Connection> devConns = device.listConnections();
Preferences arrNode = deviceNode.node("dcmAuditRecordRepository");
AuditRecordRepository arr = new AuditRecordRepository();
loadFrom(arr, arrNode);
int n = arrNode.getInt("dicomNetworkConnectionReference.#", 0);
for (int i = 0; i < n; i++) {
arr.addConnection(devConns.get(
arrNode.getInt("dicomNetworkConnectionReference." + (i+1), 0) - 1));
}
device.addDeviceExtension(arr);
}