code: public ChatNotes getNote(String sessionID) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          ChatNotes request = new ChatNotes();
          request.setType(IQ.Type.get);
          request.setTo(workgroupJID);
          request.setSessionID(sessionID);
  
          ChatNotes response = connection.createStanzaCollectorAndSend(request).nextResultOrThrow();
          return response;
      }
docs: Retrieves the ChatNote associated with a given chat session.
  
  @param sessionID the sessionID of the chat session.
  @return the <code>ChatNote</code> associated with a given chat session.
  @throws XMPPErrorException if an error occurs while retrieving the ChatNote.
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException