boolean (@NotNull MessageWithAttributes message) { String runningStr = message.getAttributes().get("running"); if (StringUtil.isEmpty(runningStr)) { // old behavior preserved return true; } return Boolean.parseBoolean(runningStr); }