Spring data couchbase upgrade from 3.2.1 to 4.2.1

Thanks @mreiche , but the crux of the problem is that the class DefaultCouchbaseEnvironment is no more in version 2.4.1 , without this class how do I configure the QueryServiceConfig ?