614615616617618619620621622623624
SnapshotCreationListener l = (SnapshotCreationListener) lr.get(); try { if (ex == null) { l.snapshotCreated(root); } else { l.snapshotFailed(ex.getMessage(), ex); } } finally { // clean up