code: public boolean isInvite() {
      if (message == null) {
        return false;
      }
  
      return (((Request) message).getMethod().equals(Request.INVITE));
    }
docs: Indicates if the request method is INVITE or not.
  
  @return true if the method is INVITE, false otherwise.