private static W3CEndpointReference getRegistrationCoordinator(String registrationCoordinatorURI, String identifier)
{
final W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder.serviceName(CoordinationConstants.REGISTRATION_SERVICE_QNAME);
builder.endpointName(CoordinationConstants.REGISTRATION_ENDPOINT_QNAME);
// strictly we shouldn't need to set the address because we are in the same web app as the
// coordinator but we have to as the W3CEndpointReference implementation is incomplete
builder.address(registrationCoordinatorURI);
InstanceIdentifier.setEndpointInstanceIdentifier(builder, identifier);
W3CEndpointReference registrationCoordinator = builder.build();