private void debug(final String message, final AttributeMap attributeMap) {
        if (LOGGER.isDebugEnabled()) {
            final List<String> keys = attributeMap
                    .keySet()
                    .stream()
                    .sorted()
                    .toList();
            final StringBuilder sb = new StringBuilder();
            keys.forEach(key -> {
                sb.append(key);
                sb.append("=");
                sb.append(attributeMap.get(key));
                sb.append(",");
            });
            if (!sb.isEmpty()) {
                sb.setLength(sb.length() - 1);
            }

            LOGGER.debug(message + " (" + sb + ")");
        }
    }
<p>
Handle the incoming requests and stream them to disk checking a few things.
</p>
stroom-core/src/main/java/stroom/core/receive/ReceiveDataRequestHandler.java