@@ -0,0 +1,956 @@
+package org.moskito.central.storage.serializer;%0A%0Aimport org.moskito.central.Snapshot;%0Aimport org.moskito.central.storage.SnapshotSerializer;%0A%0Aimport javax.xml.bind.JAXBContext;%0Aimport javax.xml.bind.JAXBException;%0Aimport javax.xml.bind.Marshaller;%0Aimport java.io.ByteArrayOutputStream;%0A%0A/**%0A * @author askrypnyk%0A * @since 14.04.15 14:00%0A */%0Apublic class XMLSerializer implements SnapshotSerializer %7B%0A%0A%0A    @Override%0A    public byte%5B%5D serialize(Snapshot snapshot) %7B%0A%0A        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();%0A%0A        try %7B%0A            JAXBContext context = JAXBContext.newInstance(Snapshot.class);%0A            Marshaller marshaller = context.createMarshaller();%0A            marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);%0A            marshaller.marshal(snapshot, outputStream);%0A        %7D catch (JAXBException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        return outputStream.toByteArray();%0A    %7D%0A%7D

add XMLSerializer