public void readBytes(DataInputStream stream, Workspace workspace) {
GraphModelImpl model = workspace.getLookup().lookup(GraphModelImpl.class);
if (model != null) {
try {
Serialization serialization = new Serialization(model.getStore());
serialization.deserializeGraphStore(stream);
} catch (Exception ex) {
Logger.getLogger("").log(Level.SEVERE, "", ex.getCause());
}
}
}