void (final long duration) { if (durationShouldBeSetExplicitly()) { invalidateCachedDurationForContainerSuites(duration - (myDuration != null ? myDuration : 0)); myDurationIsCached = true; myDuration = (duration >= 0) ? duration : null; return; } else { invalidateCachedDurationForContainerSuites(-1); } // Not allow to directly set duration for suites. // It should be the sum of children. This requirement is only // for safety of current model and may be changed LOG.warn("Unsupported operation"); }