@PostConstruct private void initializeDialog() { String letterDate = modelTranslations.toDisplayString(state.getDate()); int age = dateService.getAge(state.getChild().getBirthDate()); addDecoratedText("letter.location.date", "dateLocation", Pos.CENTER_RIGHT, state.getLocation(), letterDate); addVerticalSpacer(20); addDecoratedText("letter.dairy.entry", "diryEntry"); addVerticalSpacer(20); addDecoratedText("ch.sahits.game.openpatrician.display.dialog.event.ChildDeathDialog.childDeath", "childDeath", state.getChild().getName(), age); } }