// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/repo/BindingRepository.java
// @RepositoryRestResource(collectionResourceRel = "bindings", path = "bindings")
// public interface BindingRepository extends
// 		PagingAndSortingRepository<BindingEntity, String> {
// 
// }
// 
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/service/LCServiceInstanceBindingManager.java
// public class LCServiceInstanceBindingManager {
// 
// 	@Autowired
// 	private BindingRepository repo;
// 
// 	public LCServiceInstanceBindingManager(BindingRepository repo) {
// 		this.repo = repo;
// 	}
// 
// 	public Collection<ServiceInstanceBinding> getBindings() {
// 		Collection<ServiceInstanceBinding> bindings = new ArrayList<ServiceInstanceBinding>();
// 		repo.findAll().forEach(t -> bindings.add(convert(t)));
// 		return bindings;
// 	}
// 
// 	public ServiceInstanceBinding getBinding(String bindingId) {
// 		return convert(repo.findOne(bindingId));
// 	}
// 
// 	public ServiceInstanceBinding removeBinding(String bindingId) {
// 		BindingEntity binding = repo.findOne(bindingId);
// 		if (null != binding) {
// 			repo.delete(bindingId);
// 		}
// 		return convert(binding);
// 	}
// 
// 	public void saveBinding(ServiceInstanceBinding binding) {
// 		repo.save(new BindingEntity(binding));
// 	}
// 
// 	private ServiceInstanceBinding convert(BindingEntity binding) {
// 		return null == binding ? null : new ServiceInstanceBinding(
// 				binding.getBindingId(), binding.getServiceInstanceId(), null,
// 				binding.getDrainUrl(), binding.getAppGuid());
// 	}
// }


import org.cloudfoundry.community.servicebroker.datalifecycle.repo.BindingRepository;
import org.cloudfoundry.community.servicebroker.datalifecycle.service.LCServiceInstanceBindingManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
package org.cloudfoundry.community.servicebroker.datalifecycle.config;


@Configuration
class BindingManagerConfig {

	@Autowired
	private BindingRepository repo;

	@Bean
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/repo/BindingRepository.java
// @RepositoryRestResource(collectionResourceRel = "bindings", path = "bindings")
// public interface BindingRepository extends
// 		PagingAndSortingRepository<BindingEntity, String> {
// 
// }
// 
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/service/LCServiceInstanceBindingManager.java
// public class LCServiceInstanceBindingManager {
// 
// 	@Autowired
// 	private BindingRepository repo;
// 
// 	public LCServiceInstanceBindingManager(BindingRepository repo) {
// 		this.repo = repo;
// 	}
// 
// 	public Collection<ServiceInstanceBinding> getBindings() {
// 		Collection<ServiceInstanceBinding> bindings = new ArrayList<ServiceInstanceBinding>();
// 		repo.findAll().forEach(t -> bindings.add(convert(t)));
// 		return bindings;
// 	}
// 
// 	public ServiceInstanceBinding getBinding(String bindingId) {
// 		return convert(repo.findOne(bindingId));
// 	}
// 
// 	public ServiceInstanceBinding removeBinding(String bindingId) {
// 		BindingEntity binding = repo.findOne(bindingId);
// 		if (null != binding) {
// 			repo.delete(bindingId);
// 		}
// 		return convert(binding);
// 	}
// 
// 	public void saveBinding(ServiceInstanceBinding binding) {
// 		repo.save(new BindingEntity(binding));
// 	}
// 
// 	private ServiceInstanceBinding convert(BindingEntity binding) {
// 		return null == binding ? null : new ServiceInstanceBinding(
// 				binding.getBindingId(), binding.getServiceInstanceId(), null,
// 				binding.getDrainUrl(), binding.getAppGuid());
// 	}
// }


// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/config/BindingManagerConfig.java
import org.cloudfoundry.community.servicebroker.datalifecycle.repo.BindingRepository;
import org.cloudfoundry.community.servicebroker.datalifecycle.service.LCServiceInstanceBindingManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

package org.cloudfoundry.community.servicebroker.datalifecycle.config;


@Configuration
class BindingManagerConfig {

	@Autowired
	private BindingRepository repo;

	@Bean
	public LCServiceInstanceBindingManager bindingRepo() {