/**
  * Get the node's portion of the bot's JID.
  *
  * @return Node portion of the bot's JID.
  */
 public String getUsername() {
   if (localClientSession == null) return null;
   return localClientSession.getAddress().getNode();
 }
 /**
  * Get the resource portion of the bot's JID.
  *
  * @return Resource portion of the bot's JID.
  */
 public String getResource() {
   if (localClientSession == null) return null;
   return localClientSession.getAddress().getResource();
 }