public void send(Collection<Message> emails) {
if (mailService.isEnabled()) {
for (Message email : emails) {
CamelContext context = mailService.getCamelContext();
MailEndpoint endpoint = (MailEndpoint) context.getEndpoint(mailService.getEndpointUri());
Exchange exchange = endpoint.createExchange(email);
template.send("seda:mailUsers?multipleConsumers=true",
exchange);
}
}
}