class SafeguardController {

    public void setMessageWritingEnabled(final boolean messageWritingEnabled) {
        responseQueueListener.setMessageLoggingEnabled(messageWritingEnabled);
        jmsRequestLogger.setMessageLoggingEnabled(messageWritingEnabled);
    }

}