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