} else {
log.debug("Attempting to authenticate username '{}' using Password...", getUsername());
authResult = session.authPassword(getUsername(), getPassword());
}
authResult.await(getTimeout());
if (!authResult.isDone() || authResult.isFailure()) {
log.debug("Failed to authenticate");
throw new RuntimeCamelException("Failed to authenticate username " + getUsername());
}