});
String jobName = job.getClass().getSimpleName();
// get provider end point information
ESBEndpointInfo endpoint = job.getEndpoint();
if (null == endpoint) {
System.out.println("Launcher: ESB job [" + jobName + "] is NOT provider job");
// job contains only consumer components
// i.e. don't expose itself as web service provider
// start job immediately
job.runJobInTOS(new String[0]);
} else {
System.out.println("Launcher: ESB job [" + jobName + "] is provider job");
System.out.println("ESB [provider]: provider endpoint info - key = " + endpoint.getEndpointKey());
System.out.println("ESB [provider]: provider endpoint info - uri = " + endpoint.getEndpointUri());
System.out.println("ESB [provider]: provider endpoint info - properties = " + endpoint.getEndpointProperties());
// init provider communication part - set provider callback
job.setProviderCallback(new ESBProviderCallback() {
// all below is TestProviderJob specific implementation
int count = 0;