code: @Override
  	public @NonNull byte[] renderData() throws Exception {
  		String jsonString = marshallForSending().toString();
  		ApptentiveLog.v(PAYLOADS, jsonString);
  
  		// authenticated payloads get encrypted before sending
  		if (isAuthenticated()) {
  			byte[] bytes = jsonString.getBytes();
  			return Encryptor.encrypt(getEncryptionKey(), bytes);
  		}
  
  		return jsonString.getBytes();
  	}
docs: region Data