code: public PresenceImpl setCacheStatus(OnlineStatus status)
      {
          if (status == null)
              throw new NullPointerException("Null OnlineStatus is not allowed.");
          if (status == OnlineStatus.OFFLINE)
              status = OnlineStatus.INVISIBLE;
          this.status = status;
          return this;
      }
docs: /* -- Impl Setters --