class YamlMessageService extends AbstractMessageService {

    @Override
    public void loadMessages(String messagesFilePath) {
        try (InputStream in = YamlMessageService.class.getResourceAsStream(messagesFilePath)) {
            Yaml yaml = new Yaml();
            MessageTemplates messageTemplates = yaml.loadAs(in, MessageTemplates.class);
            super.addMessageTemplates(messageTemplates);
        } catch (YAMLException | IOException e) {
            throw new MessageLoadException("There is problem with reading application messages file: " + messagesFilePath, e);
        }
    }

    public  YamlMessageService();
    public  YamlMessageService(String messagesFilePath);

}