return byteStream.toByteArray();
}
public static StorableFigureHolder fromBytes(byte[] bytes) throws IOException {
ByteArrayInputStream byteStream = new ByteArrayInputStream(bytes);
StorableInput in = new StorableInput(byteStream);
return (StorableFigureHolder)in.readStorable();
}