public RESTEasyTracingMessage(RESTEasyTracingEvent event, long duration, final String[] args) { this.event = event; this.duration = duration; this.timestamp = System.nanoTime(); if (event.messageFormat() != null) { this.text = String.format(event.messageFormat(), (Object[]) args); } else { final StringBuilder text = new StringBuilder(); for (final String arg : args) { text.append(arg).append(' '); } this.text = text.toString(); } }