code: public static String fromBytes(byte[] bytes, ProcessEngine processEngine) {
      ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
      Charset charset = processEngineConfiguration.getDefaultCharset();
      return new String(bytes, charset);
    }
docs: converts a byte array into a string using the provided process engine's default charset as
  returned by {@link ProcessEngineConfigurationImpl#getDefaultCharset()}
  
  @param bytes the byte array
  @param processEngine the process engine
  @return a string representing the bytes