SubscribeDocument.Subscribe subscribe = doc.getSubscribe();
// lets get the endpoint reference
EndpointReferenceType endpointReference = subscribe.getConsumerReference();
AttributedURI address = endpointReference.getAddress();
System.out.println("EndpointReference address is: " + address.getStringValue());
ReferencePropertiesType referenceProperties = endpointReference.getReferenceProperties();
System.out.println("Reference properties: " + referenceProperties);