code: public boolean isAway() {
          return type == Type.available && (mode == Mode.away || mode == Mode.xa || mode == Mode.dnd);
      }
docs: Returns true if the presence type is {@link Type#available available} and the presence
  mode is {@link Mode#away away}, {@link Mode#xa extended away}, or
  {@link Mode#dnd do not disturb}. False will be returned when the type or mode
  is any other value, including when the presence type is unavailable (offline).
  This is a convenience method equivalent to
  <tt>type == Type.available &amp;&amp; (mode == Mode.away || mode == Mode.xa || mode == Mode.dnd)</tt>.
  
  @return true if the presence type is available and the presence mode is away, xa, or dnd.