Cluster.Builder clusterBuilder = Cluster.builder();
clusterBuilder.addContactPoints(contactPoints.toArray(new String[contactPoints.size()]));
clusterBuilder.withPort(nativeProtocolPort);
clusterBuilder.withReconnectionPolicy(new ExponentialReconnectionPolicy(500, 10000));
QueryOptions options = new QueryOptions();
options.setFetchSize(fetchSize);
options.setConsistencyLevel(consistencyLevel);
clusterBuilder.withQueryOptions(options);
return new CassandraSession(connectorId.toString(), clusterBuilder, fetchSizeForPartitionKeySelect, limitForPartitionKeySelect);
}