class VelocityMailTemplateService {

    public Pair<String, String> getSubjectAndText(@NotNull String templatePath, Map<String, Object> contextMap) {
        var unparsed = mergeTemplate(templatePath, contextMap);
        var subject = getSubStringBetweenDelimiters(unparsed, SUBJECT_DELIMITER, TEXT_DELIMITER);
        var text = getSubStringBetweenDelimiters(unparsed, TEXT_DELIMITER, null);

        return new Pair<>(subject, text);
    }

    public  VelocityMailTemplateService(VelocityEngine velocityEngine);

}