private String buildSummary() { final String tmp; if (range.getPeriod() == Period.TOUT) { final String startDate = I18N.createDateAndTimeFormat().format(collector.getCounters().get(0).getStartDate()); tmp = getFormattedString( "Statistiques", "JavaMelody", I18N.getCurrentDateAndTime(), startDate, collector.getApplication()); } else { tmp = getFormattedString( "Statistiques_sans_depuis", "JavaMelody", I18N.getCurrentDateAndTime(), collector.getApplication()); } if (javaInformationsList.get(0).getContextDisplayName() != null) { return tmp + " (" + javaInformationsList.get(0).getContextDisplayName() + ')'; } return tmp; }