try {
CloudUiUtil.runForked(new ICoreRunnable() {
@Override
public void run(IProgressMonitor monitor) throws CoreException {
monitor.setTaskName(Messages.MANAGE_SERVICES_TO_APPLICATIONS_FINISH);
CloudFoundryServerBehaviour behaviour = server.getBehaviour();
if (serviceToApplicationsBindingPart != null && server != null && behaviour != null){
List<ApplicationToService> applicationsToProcess =
serviceToApplicationsBindingPart.getApplicationToService();
CloudService cloudService = null;
try {
// Find the Cloud Service that was selected
List<CloudService> cloudServiceList = behaviour.getServices(null);
int lenCloudService = cloudServiceList.size();
String serviceName = servicesHandler.toString();
for (int j=0;j<lenCloudService;j++){