private void connectPopBeforeSmtp() throws MailException {
if (popBeforeSmtpId != null) {
MailService service = getMailService();
if (service == null) {
throw new MailStoreNotFoundException("Could not find mail store \"" + popBeforeSmtpId
+ "\": mail service is not set");
}
MailStore popBeforeSmtpStore = assertNotNull(service.getMailStore(popBeforeSmtpId),
"popBeforeSmtpStore: %s", popBeforeSmtpId);