class PropertyBasedMessageMarker implements MessageMarker {

    @Override
    public void markMessageHeader(final WilmaHttpRequest request) {
        MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties();
        if (messageMarkerRequest.getNeedMessageMarker()) {
            request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId());
        }
    }

}