code: private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
          JavaProcessBuilder pb = SAMPLE_QUEUE.newProcessBuilder(Locale.getDefault());
          pb.setProcessName("Test 5");
          pb.setProcessDescription("Test 5");
          Test2Runner runner = new Test2Runner();
          pb.setProcessDetails(runner, "run", new Class[] {Integer.TYPE}, new Object[] {(Integer)jSpinner1.getValue()});
          pb.addProcessSection(runner, "waitForProcess", new Class[] {}, new Object[] {});
          pb.setProcessPersistence(true);
          pb.newProcess();
      }
docs: GEN-LAST:event_jButton4ActionPerformed