- final boolean havePermit = failedModification == null && acquireOperation();
- batchModification(modification, havePermit);
+ final boolean permitToRelease;
+ if (havePermit == null) {
+ permitToRelease = failedModification == null && acquireOperation();
+ } else {
+ permitToRelease = havePermit.booleanValue();
+ }
+
+ batchModification(modification, permitToRelease);