// Subscribe to messages with XPATH using some helper classes
log.info("Subscribing #1 for anonymous callback class using XPath syntax ...");
SubscribeKey key = new SubscribeKey(glob, "//DispatchTest", "XPATH");
SubscribeQos qos = new SubscribeQos(glob);
blasterConnection.subscribe(key, qos, new I_Callback() {
public String update(String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos) {
log.info("Receiving message with specialized update() #1 ...");
numReceived1++;
System.out.println(updateKey.toXml());
System.out.println((new String(content)).toString());