code: public void updateOccupantStatus (BodyObject body, final byte status)
      {
          // no need to NOOP
          if (body.status != status) {
              // update the status in their body object
              body.setStatus(status);
              body.getLocal(BodyLocal.class).statusTime = System.currentTimeMillis();
          }
  
          updateOccupantInfo(body, new OccupantInfo.Updater<OccupantInfo>() {
              public boolean update (OccupantInfo info) {
                  if (info.status == status) {
                      return false;
                  }
                  info.status = status;
                  return true;
              }
          });
      }
docs: Updates the connection status for the given body object's occupant info in the specified
  location.