public void loadDir()

in src/main/java/com/epam/digital/data/platform/notification/service/AbstractGenericNotificationLoader.java [40:53]


  public void loadDir(File dir) {
    try {
      var notificationDto = getNotificationDto(dir);

      SaveNotificationTemplateInputDto inputDto =
          getSaveNotificationTemplateInputDto(notificationDto);

      templateRestClient.saveTemplate(notificationDto.getChannel(), dir.getName(), inputDto);
    } catch (Exception e) {
      log.error("Failed processing template {}. Error: {}", dir.getName(), e);
      throw e;
    }

  }