code: public PresenceSubscriber getBuddyInfo(String uri) {
      synchronized (buddyList) {
        PresenceSubscriber s = buddyList.get(uri);
  
        if (s == null) {
          s = buddyTerminatedList.get(uri);
        }
  
        return s;
      }
    }
docs: Gets the PresenceSubscriber object representing a buddy or user whose presence
  information was fetched at some previous point. The returned object contains the most recently
  obtained presence information for the given user. Status, presence device info, received
  requests (NOTIFY's) and SUBSCRIBE responses, etc. for this user's subscription can be obtained
  from the returned object. The user may have been a buddy in the buddy list (but was removed
  from the list by the test program), or fetchPresenceInfo() was previously called for the user
  to get a one-time status report, or the user may still be in the buddy list.
  
  @param uri the URI (ie, sip:bob@nist.gov) of the user whose subscription object is to be
  returned.
  @return A PresenceSubscriber object that contains information about the user's last obtained
  presence status and other info, or null if there was never any status fetch done for
  this user and this user was never in the buddy list.