String smtpPassword = config.get(NotificationPluginConfig.smtpPassword);
Boolean useTls = Boolean.parseBoolean(config.get(NotificationPluginConfig.useTls));
Boolean useSSL = Boolean.parseBoolean(config.get(NotificationPluginConfig.useSSL));
Integer connectTimeout = getIntParameter(config, NotificationPluginConfig.connectTimeout, Integer.MAX_VALUE);
Integer smtpTimeout = getIntParameter(config, NotificationPluginConfig.smtpTimeout, Integer.MAX_VALUE);
return new EmailSenderConfiguration(senderName, senderEmail, smtpHost, smtpPort,
smtpUsername, smtpPassword, useTls, connectTimeout, smtpTimeout, useSSL);
}