@Override
public Node[] locate(final CouchbaseRequest request, final Set<Node> nodes, final ClusterConfig config) {
if (request instanceof BucketConfigRequest) {
BucketConfigRequest req = (BucketConfigRequest) request;
InetAddress hostname = req.hostname();
for (Node node : nodes) {
if (hostname == null || node.hostname().equals(hostname)) {
return new Node[]{node};
}
}