}
public void updateSnapshot(Serializable snapshotId, FlowExecutionSnapshot snapshot)
throws SnapshotNotFoundException {
if (!snapshots.containsKey(snapshotId)) {
throw new SnapshotNotFoundException(snapshotId);
}
snapshots.put(snapshotId, snapshot);
}