class AppDeploymentInstanceWorkflow {

	protected Mono<List<BackingApplication>> getBackingApplicationsForService(ServiceDefinition serviceDefinition,
		Plan plan) {
		return findBrokeredService(serviceDefinition, plan)
			.flatMap(brokeredService -> Mono.justOrEmpty(brokeredService.getApps()))
			.map(backingApplications -> BackingApplications.builder()
				.backingApplications(backingApplications)
				.build());
	}

	protected  AppDeploymentInstanceWorkflow(BrokeredServices brokeredServices);

}