+ return new MessageFormat(l10n.getString(text), new Locale(l10n.getSelectedLanguage().shortCode)).format(parameterValues.toArray());
+ }
+
+ @Nonnull
+ private String getText(Object data) {
+ return (data instanceof L10nText) ? ((L10nText) data).getText() : String.valueOf(data);
+ }
+
+ @Nonnull
+ private List<Object> getParameters(Object data, Map<String, Object> parameters) {
+ if (data instanceof L10nText) {
+ return ((L10nText) data).getParameters();
+ }
+ List<Object> parameterValues = new ArrayList<>();