code: public void encode(AsnOutputStream aos) throws EncodeException {
          try {
              aos.writeOctetString(Tag.CLASS_PRIVATE, ProtocolVersion._TAG_PROTOCOL_VERSION, new byte[] { (byte) this.data });
          } catch (IOException e) {
              throw new EncodeException("IOException while encoding ProtocolVersion: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new EncodeException("AsnException while encoding ProtocolVersion: " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.mobicents.protocols .asn.AsnOutputStream)