]> git.mxchange.org Git - jfinancials-mailer-ejb.git/blobdiff - src/java/org/mxchange/jfinancials/model/mailer/FinancialsMailerSingletonBean.java
Please cherry-pick:
[jfinancials-mailer-ejb.git] / src / java / org / mxchange / jfinancials / model / mailer / FinancialsMailerSingletonBean.java
index 7bf73826df64a76b8ed66afd073c64f854d358d7..3de58977c5cadc23aad1d2d916cd94457982a2cc 100644 (file)
@@ -27,6 +27,7 @@ import javax.mail.MessagingException;
 import javax.mail.Session;
 import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
+import org.apache.velocity.context.Context;
 import org.mxchange.jmailee.model.delivery.BaseMailerBean;
 import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery;
 
@@ -46,7 +47,7 @@ public class FinancialsMailerSingletonBean extends BaseMailerBean implements Del
        /**
         * Configuration file
         */
-       private final String configFile = "org.mxchange.jmailer.config"; //NOI18N//NOI18N
+       private final String configFile = "org.mxchange.jmailer.config"; //NOI18N
 
        /**
         * Email session
@@ -137,10 +138,10 @@ public class FinancialsMailerSingletonBean extends BaseMailerBean implements Del
                }
 
                // All required data is set, load template
-               Template template = this.getTemplateEngine().getTemplate(String.format("templates/%s/%s.vm", emailWrapper.getLocale().getLanguage().toLowerCase(), emailWrapper.getTemplateName())); //NOI18N
+               final Template template = this.getTemplateEngine().getTemplate(String.format("templates/%s/%s.vm", emailWrapper.getLocale().getLanguage().toLowerCase(), emailWrapper.getTemplateName())); //NOI18N
 
                // Init context
-               VelocityContext context = new VelocityContext();
+               final Context context = new VelocityContext();
 
                // Are some variables set?
                if ((emailWrapper.getTemplateVariables() != null) && (!emailWrapper.getTemplateVariables().isEmpty())) {