ExternalService externalService = (ExternalService) object;
if (externalService.getBindings().size() < 1 || !(externalService.getBindings().get(0) instanceof JbiBinding)) {
return;
}
ExternalJbiServiceClient externalJbiServiceClient = new ExternalJbiServiceClient(externalService);
ExternalJbiServiceContextFactory config = new ExternalJbiServiceContextFactory(externalService.getName(), new SingletonObjectFactory<ExternalJbiServiceClient>(externalJbiServiceClient));
ConfiguredService configuredService = externalService.getConfiguredService();
Service service = configuredService.getService();
ServiceContract serviceContract = service.getServiceContract();