try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
SnapshotManager sm = SnapshotManager.loadSnapshot(getLogfileId());
DataOutputStream dos = new DataOutputStream(bos);
if (sm != null){
sm.save(dos);
}
dos.close();
data = bos.toByteArray();
} catch (IOException ex) {
Exceptions.printStackTrace(ex);