class GetPooledTransactionsMessage extends AbstractMessageData {

  public static GetPooledTransactionsMessage readFrom(final MessageData message) {
    if (message instanceof GetPooledTransactionsMessage) {
      return (GetPooledTransactionsMessage) message;
    }
    final int code = message.getCode();
    if (code != MESSAGE_CODE) {
      throw new IllegalArgumentException(
          String.format(
              "Message has code %d and thus is not a GetPooledTransactionsMessage.", code));
    }

    return new GetPooledTransactionsMessage(message.getData());
  }

  private  GetPooledTransactionsMessage(final Bytes rlp);

}