public static String buildFailureString(AtomicInteger count, String cause) { return MessageFormat.format("Failure count: {0}, failure cause: {1} ", count.getAndSet(0), cause); }