}
Preferences appsNode = deviceNode.node("hl7Application");
if (prevHL7Ext != null)
for (String appName : prevHL7Ext.getHL7ApplicationNames()) {
if (!hl7Ext.containsHL7Application(appName))
appsNode.node(appName).removeNode();
}
List<Connection> devConns = device.listConnections();
for (HL7Application app : hl7Ext.getHL7Applications()) {