logger.info("Connecting to {}", connectionBuilder);
} else {
logger.debug("Connecting to {}", connectionBuilder);
}
OverthereConnection connection = connectionBuilder.connect();
logger.trace("Connected to {}", connection);
return connection;
} catch (NoSuchMethodException exc) {
throw new IllegalStateException(connectionBuilderClass + " does not have a constructor that takes in a String and ConnectionOptions.", exc);