invoker = new AsynchronousInvoker(definitions, messageBoxURL);
} else {
invoker = new SimpleInvoker(definitions);
}
} else if (gfacURL != null && gfacURL.length() != 0) {
invoker = new GFacInvoker(portTypeQName, gfacURL, messageBoxURL, leadContext);
}
if (invoker == null) {
String message = "Cannot find an appropriate way to invoke the service";
throw new WorkflowException(message);