code: private void sendPublishStopNotify() {
          Status stopStatus = new Status(StatusCodes.NS_UNPUBLISHED_SUCCESS);
          stopStatus.setClientid(getStreamId());
          stopStatus.setDetails(getPublishedName());
  
          StatusMessage stopMsg = new StatusMessage();
          stopMsg.setBody(stopStatus);
          pushMessage(stopMsg);
          setState(StreamState.STOPPED);
      }
docs: Sends publish stop notifications