public void registerBPELProcess(QName serviceQName, String version, String portName, URL serviceUrl,
URL wsdlURL, Definition wsdlDefinition) {
if (selfRegister) {
try {
RegistrationInfo registrationInfo = new RegistrationInfo();
registrationInfo.setServiceQName(serviceQName);
registrationInfo.setVersion(version);
registrationInfo.setPortName(portName);
registrationInfo.setServiceUrl(serviceUrl);
registrationInfo.setWsdlUrl(wsdlURL);
registrationInfo.setWsdlDefinition(wsdlDefinition);
registrationInfo.setRegistrationType(RegistrationType.BPEL);
registration = new AsyncRegistration(bpelClerk, urlLocalizer, properties, registrationInfo);
Thread thread = new Thread(registration);
thread.start();
} catch (Exception e) {
log.error("Unable to register service " + serviceQName