Assert.notNull(storeUri, "Property 'storeUri' is required");
Assert.notNull(transportUri, "Property 'transportUri' is required");
if (monitoringStrategy == null) {
String protocol = storeUri.getProtocol();
if ("pop3".equals(protocol)) {
monitoringStrategy = new Pop3PollingMonitoringStrategy();
}
else if ("imap".equals(protocol)) {
monitoringStrategy = new PollingMonitoringStrategy();
}
else {