@Override
 protected void loadFrom(HL7Application hl7App, Attributes attrs) throws NamingException {
   super.loadFrom(hl7App, attrs);
   if (!(hl7App instanceof ArchiveHL7Application)) return;
   ArchiveHL7Application arcHL7App = (ArchiveHL7Application) hl7App;
   arcHL7App.setTemplatesURIs(stringArray(attrs.get("labeledURI")));
 }
  @Override
  protected Attributes storeTo(HL7Application hl7App, String deviceDN, Attributes attrs) {
    super.storeTo(hl7App, deviceDN, attrs);
    if (!(hl7App instanceof ArchiveHL7Application)) return attrs;

    ArchiveHL7Application arcHL7App = (ArchiveHL7Application) hl7App;
    storeNotEmpty(attrs, "labeledURI", arcHL7App.getTemplatesURIs());
    return attrs;
  }
  @Override
  protected List<ModificationItem> storeDiffs(
      HL7Application a, HL7Application b, String deviceDN, List<ModificationItem> mods) {
    super.storeDiffs(a, b, deviceDN, mods);
    if (!(a instanceof ArchiveHL7Application && b instanceof ArchiveHL7Application)) return mods;

    ArchiveHL7Application aa = (ArchiveHL7Application) a;
    ArchiveHL7Application bb = (ArchiveHL7Application) b;
    storeDiff(mods, "labeledURI", aa.getTemplatesURIs(), bb.getTemplatesURIs());
    return mods;
  }