class MarshallingResponsePopup {

    String displayableValue(MarshallingMessage message) {
        if (StringUtils.nonEmpty(message.getMessageKey())) {
            final List<?> arguments = Optional.ofNullable(message.getMessageArguments()).orElse(Collections.emptyList());
            String translation =
                    translationService.getValue(message.getMessageKey(), arguments.toArray(new Object[0]));
            if (!erraiDefaultValue(message.getMessageKey()).equals(translation)) {
                return translation;
            }
        }
        return message.getMessage();
    }

    @Inject public  MarshallingResponsePopup(View view, ClientTranslationService translationService);

}