class MailRepositoryStoreService {

    public Optional<MimeMessage> retrieveMessage(MailRepositoryPath path, MailKey mailKey) throws MailRepositoryStore.MailRepositoryStoreException, MessagingException {
        return fecthMail(path, mailKey)
            .map(Throwing.function(Mail::getMessage).sneakyThrow());
    }

    @Inject public  MailRepositoryStoreService(MailRepositoryStore mailRepositoryStore);

}