private EndpointReferenceType toEndpointReference(String ref) {
EndpointReferenceType rc = EndpointReferenceType.Factory.newInstance();
rc.addNewAddress().setStringValue(address);
ReferencePropertiesType props = rc.addNewReferenceProperties();
XmlCursor cursor = props.newCursor();
cursor.setTextValue(ref);
return rc;
}
private String toReferenceId(EndpointReferenceType subscriptionReference) {