docs: private Object readResolve() throws ObjectStreamException {
          if (triggerScript != null && secureTriggerScript == null) {
              this.secureTriggerScript = new SecureGroovyScript(triggerScript, false, null);
              this.secureTriggerScript.configuring(ApprovalContext.create());
              triggerScript = null;
          }
          return this;
      }