Add support for BytesMessage type.