private <T> T unwrapResult(Result<T> result) {
   if (result.status() == Result.Status.LOCKED) {
     throw new ConsistentMapException.ConcurrentModification();
   } else if (result.success()) {
     return result.value();
   } else {
     throw new IllegalStateException("Must not be here");
   }
 }