4243444546474849505152
Storage db = StorageFactory.getInstance().createStorage(); db.open(databaseFile); db.setRoot(db.createSet()); for (Object obj : new XStreamFile(xstreamFile).read()) { ((Set) db.getRoot()).add(obj); db.store(obj); } db.commit(); db.close(); } }