}
final String protocol = setup.getProtocol();
if (protocol.startsWith(ServerSetup.PROTOCOL_SMTP)) {
services.put(protocol, new SmtpServer(setup, managers));
} else if (protocol.startsWith(ServerSetup.PROTOCOL_POP3)) {
services.put(protocol, new Pop3Server(setup, managers));
} else if (protocol.startsWith(ServerSetup.PROTOCOL_IMAP)) {
services.put(protocol, new ImapServer(setup, managers));
}
}
}