private MessageData offsetMessageCode(final MessageData originalMessage, final int offset) {
    // Return wrapped message with modified offset
    return new MessageData() {
      @Override
      public int getSize() {
        return originalMessage.getSize();
      }

      @Override
      public int getCode() {
        return originalMessage.getCode() + offset;
      }

      @Override
      public Bytes getData() {
        return originalMessage.getData();
      }

      @Override
      public String toString() {
        return "Message{ code=" + getCode() + ", size=" + getSize() + "}";
      }
    };
  }
Given a message from a peer, determine which capability the message corresponds to and maps the
message code to the appropriate value.

@param receivedMessage The message received from a peer.
@return The interpreted message.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/wire/CapabilityMultiplexer.java