docs: public static byte[] toByteArray(String string, ProcessEngine processEngine) {
      ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
      Charset charset = processEngineConfiguration.getDefaultCharset();
      return string.getBytes(charset);
    }