while (!stop.get()) {
try {
Thread.sleep(MILLISECONDS.convert(10, SECONDS));
if (!stop.get()) {
++counter;
sw.lap();
System.out.println(" continuing after " + sw.getTotalDuration().toSimpleString());
}
if (counter % 24 == 0) {
History history = repository.getRepositoryStatistics().getHistory(ValueMetric.SESSION_COUNT,
Window.PREVIOUS_60_SECONDS);