MessageAddress target = msg.getTarget();
MessageAddress target = msg.getTarget().getPrimary();
	public MessageAttributes forwardMessage (AttributedMessage msg) 	    throws UnregisteredNameException, NameLookupException, 		   CommFailureException, MisdeliveredMessageException	{	    // subscribe to MsglogEnable for remote agents only	    MessageAddress target = msg.getTarget();	    if (!getRegistry().isLocalClient(target)) {		synchronized (agents) {		    AgentEntry entry = (AgentEntry)agents.get(target);		    if (entry == null) {			entry = new AgentEntry(target,true);			agents.put(target, entry);			entry.observer = new AgentObserver(target);		    }		}	    }   	    return super.forwardMessage(msg);	}