class LogbackPatternLayout extends PatternLayout {

    String modifyMessage(String message) {
        String logMessage = message;
        for (Map.Entry<Pattern, String> next : mapForReplacement.entrySet()) {
            logMessage = next.getKey().matcher(logMessage).replaceAll(next.getValue());
        }
        return logMessage;
    }

    public  LogbackPatternLayout();

}