why get the resource only to pass the path into `MailTemplate.create()`? Seems unnecesary.