log.debug("PB== *** WP Cannot find agent -- NameLookupException encountered with:"+toNodeAddr);
log.debug("PB== *** WP Cannot find agent -- NameLookupException encountered with:"+toNodeAddr+" -- fwding msg."); return; } catch (Exception e) { log.debug("PB== *** Null Ptr Exception encountered trying to get AgentID. -- fwding msg.");
        public void applyPiggybacking(AttributedMessage message) {                     //See if this message is going where some HBs need to go    	    MessageAddress toNodeAddr = message.getTarget();                        String toNode = null;            try {                AgentID agentID = AgentID.getAgentID(HeartbeatPiggybackerAspect.this,                                                  HeartbeatPiggybackerAspect.this.getServiceBroker(),                                                  toNodeAddr);                toNode = agentID.getNodeName();            } catch (NameLookupException nle) {                log.debug("PB== *** WP Cannot find agent -- NameLookupException encountered with:"+toNodeAddr);                return;            }            if (toNode == null) { //white pages service could not find node / had exception                if (log.isDebugEnabled()) {                    log.debug("PB========= Checking to piggyback HBs --> have msg going to "+toNode);                }                return;            }                            Object o = null;            synchronized(waitingHeartbeats) {                if (waitingHeartbeats != null && waitingHeartbeats.size() > 0)                    o = waitingHeartbeats.remove(toNode);            }            if (o == null) { //no heartbeats to attach                return;            }             else {                HeartbeatData hbd = (HeartbeatData)o;                message.setAttribute(HEARTBEAT_PIGGYBACK_VECTOR, hbd.getHeartbeats() );                if (log.isDebugEnabled())                     log.debug("PB==>>>>>> Removed queue & applied piggybacking going to "+toNode);            }        }