*/
private void handleClusterRequest(final CouchbaseRequest request) {
if (request instanceof SeedNodesRequest) {
boolean success = configProvider.seedHosts(((SeedNodesRequest) request).nodes(), true);
ResponseStatus status = success ? ResponseStatus.SUCCESS : ResponseStatus.FAILURE;
request.observable().onNext(new SeedNodesResponse(status));
request.observable().onCompleted();
} else if (request instanceof OpenBucketRequest) {
configProvider
.openBucket(request.bucket(), request.password())
.flatMap(new Func1<ClusterConfig, Observable<ClusterConfig>>() {