in src/main/java/com/epam/digital/data/platform/notification/service/DiiaNotificationLoader.java [27:39]
public NotificationDto getNotificationDto(File dir) throws IOException {
log.info("Processing diia template {}", dir.getName());
var indexFile = Path.of(dir.getPath(), TEMPLATE_CONTENT_FILE_NAME).toFile();
var content = FileUtils.readFileToString(indexFile, StandardCharsets.UTF_8);
var templateMetadataFile = Path.of(dir.getPath(), TEMPLATE_METADATA_FILE_NAME).toFile();
return NotificationDto.builder()
.content(content)
.templateMetadataFile(templateMetadataFile)
.channel(DIIA.getChannelName())
.build();
}