@ServiceProvider(service = WorkspacePersistenceProvider.class, position = 12000)
public class DataPersistenceProvider implements WorkspacePersistenceProvider {
public void writeXML(XMLStreamWriter writer, Workspace workspace) {
Dhns dhns = workspace.getLookup().lookup(Dhns.class);
DataSerializer serializer = new DataSerializer();
try {
serializer.writeData(writer, dhns);
} catch (XMLStreamException ex) {
throw new RuntimeException(ex);
}
}