code: public static byte[] encodeSequence(byte[]... encodedValues)
      {
          int length = 0;
          for (byte[] encodedValue : encodedValues) {
              length += encodedValue.length;
          }
          byte[] lengthEncoded = encodeLength(length);
  
          ByteArrayDataOutput out = ByteStreams.newDataOutput(1 + lengthEncoded.length + length);
          out.write(SEQUENCE_TAG);
          out.write(lengthEncoded);
          for (byte[] entry : encodedValues) {
              out.write(entry);
          }
          return out.toByteArray();
      }
docs: Encodes a sequence of encoded values.