boolean () { int newValue = myIterations + 1; if (myIterations >= myMaxIterations) { LOG.debug("Iterations limit " + myMaxIterations + " reached: ", new Throwable()); return false; } myIterations = newValue; return true; }