* @param participant
* @return either the secure terminaton participant endpoint or the non-secure endpoint
*/
EndpointReference getCompletionInitiator(W3CEndpointReference participant)
{
NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant);
String address = nativeRef.getAddress();
if (address.startsWith("https")) {
return secureCompletionInitiator;
} else {
return completionInitiator;
}