}
}
throw new IllegalStateException("Node not found for request" + request);
}
BucketConfig bucket = cluster.bucketConfig(request.bucket());
if (bucket instanceof CouchbaseBucketConfig) {
return locateForCouchbaseBucket((BinaryRequest) request, nodes, (CouchbaseBucketConfig) bucket);
} else if (bucket instanceof MemcachedBucketConfig) {
return locateForMemcacheBucket((BinaryRequest) request, nodes, (MemcachedBucketConfig) bucket);
} else {