Opening multiple buckets in Springboot 2.0

Hi All,
I am trying to connect a springboot2 app to couchbase 6 community edition.
I am connecting to multiple buckets and through repository mapping I want to use multiple repositories together each repo mapping to different buckets.I have created the couchbase configuration class with below methods. Assume getCluster() is returning the authenticated cluster properly.

However it always connect to same repository even though entities are mapped to each bucket configuration.I have config object per each bucket.

Please help me to identify the issue here.

@Configuration

@EnableCouchbaseRepositories
public class ConfigurationBucketConfig extends CouchbaseConfiguration {

@Override
protected String getUsername() {
	return bucketRootUserName;
}

@Override
protected String getBucketName() {
	return configurationBucketName;
}

@Override
protected String getBucketPassword() {
	return configurationBucketPassword;
}


public Bucket configurationBucket() throws Exception {
	return getCluster().openBucket(configurationBucketName);
}

@Override
public CouchbaseTemplate couchbaseTemplate() throws Exception {
	CouchbaseTemplate template = new CouchbaseTemplate(
			couchbaseClusterInfo(), configurationBucket(),
			mappingCouchbaseConverter(), translationService());
	template.setDefaultConsistency(getDefaultConsistency());
	return template;
}


@Override
  public void configureRepositoryOperationsMapping(RepositoryOperationsMapping baseMapping) {
    try {
		baseMapping //this is already using couchbaseTemplate as default
		  .mapEntity(Api.class, couchbaseTemplate())
		.mapEntity(Connector.class, couchbaseTemplate())
		.mapEntity(ConnectorParameter.class, couchbaseTemplate())
		.mapEntity(ErrorLog.class, couchbaseTemplate())
		.mapEntity(Message.class, couchbaseTemplate())
		.mapEntity(Route.class, couchbaseTemplate())
		.mapEntity(RouteHistory.class, couchbaseTemplate())
		.mapEntity(Subscriber.class, couchbaseTemplate())
		
		.mapEntity(MessageRevision.class, couchbaseTemplate());
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} //every repository dealing with User will be backed by userTemplate()
  }

}

Thanks
Isuru

It seems I need to extend from AbstractCouchbaseDataConfiguration .

Can somebody tell me how to configure CouchbaseConfigurer here?

@Override
protected CouchbaseConfigurer couchbaseConfigurer() {
// TODO Auto-generated method stub

}

Can somebody point me to a sample implementation?