List<String> tokenParams = Lists.newArrayList(params.getExtraInfos().get(ConnectionParams.Info.EXPLORE_AUTH_TOKEN));
if (tokenParams != null && !tokenParams.isEmpty() && !tokenParams.get(0).isEmpty()) {
authToken = tokenParams.get(0);
}
ExploreClient exploreClient = new FixedAddressExploreClient(params.getHost(), params.getPort(), authToken);
if (!exploreClient.isServiceAvailable()) {
throw new SQLException("Cannot connect to " + url + ", service unavailable");
}
return new ExploreConnection(exploreClient);
}