#vulnerable code 
                             @Override
	public void configureReactiveRepositoryOperationsMapping(ReactiveRepositoryOperationsMapping baseMapping) {
		try {
			ReactiveCouchbaseTemplate personTemplate = myReactiveCouchbaseTemplate(myCouchbaseClientFactory("protected"),new MappingCouchbaseConverter());
			baseMapping.mapEntity(Person.class,	personTemplate); // Person goes in "protected" bucket
			ReactiveCouchbaseTemplate userTemplate = myReactiveCouchbaseTemplate(myCouchbaseClientFactory("mybucket"),new MappingCouchbaseConverter());
			baseMapping.mapEntity(User.class,	userTemplate); // User goes in "mybucket"
			// everything else goes in getBucketName() (  which is travel-sample )
		} catch (Exception e) {
			throw e;
		}
	} 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Override
	public void configureReactiveRepositoryOperationsMapping(ReactiveRepositoryOperationsMapping baseMapping) {
		try {
			// comment out references to 'protected' and 'mybucket' - they are only to show how multi-bucket would work
			// ReactiveCouchbaseTemplate personTemplate =
			// myReactiveCouchbaseTemplate(myCouchbaseClientFactory("protected"),new MappingCouchbaseConverter());
			// baseMapping.mapEntity(Person.class, personTemplate); // Person goes in "protected" bucket
			// ReactiveCouchbaseTemplate userTemplate = myReactiveCouchbaseTemplate(myCouchbaseClientFactory("mybucket"),new
			// MappingCouchbaseConverter());
			// baseMapping.mapEntity(User.class, userTemplate); // User goes in "mybucket"
			// everything else goes in getBucketName() ( which is travel-sample )
		} catch (Exception e) {
			throw e;
		}
	}