// lets get the selector
QueryExpressionType selector = subscribe.getSelector();
String dialect = selector.getDialect();
XmlAnyURI dialectURI = selector.xgetDialect();
String text = selector.xmlText();
System.out.println("Selector dialect: " + dialect + " of uri: " + dialectURI + " with value: " + text);
// termination time