// 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);
// lets get the selector
QueryExpressionType selector = subscribe.getSelector();