code: private List<byte[]> splitBytes(byte[] array, byte delimiter) {
  		List<byte[]> byteArrays = new ArrayList<byte[]>();
  		int begin = 0;
  
  		for (int i = 0; i < array.length; i++) {
  			// first find delimiter.
  			while (i < array.length && array[i] != delimiter) {
  				i++;
  			}
  			byteArrays.add(Arrays.copyOfRange(array, begin, i));
  			begin = i + 1;
  		}
  		return byteArrays;
  	}
docs: split the byte array with the specified delimiter. the expectation here is tha the byte array is a byte representation
  of cookie value which was base64 encoded data.