private final ExchangeService service;
public ExchangeSourceImpl(final ExchangeSettings settings) throws Exception {
LOG.info("Connecting to Exchange (" + settings.getExchangeHost() + ") as " + settings.getExchangeUsername() + "...");
final ExchangeCredentials credentials = new WebCredentials(
settings.getExchangeUsername(),
settings.getExchangePassword(),
settings.getExchangeDomain());
service = new ExchangeService(ExchangeVersion.valueOf(settings.getExchangeVersion()));
service.setCredentials(credentials);