code: private ScriptValidationContext getScriptValidationContext() {
          if (scriptValidationContext == null) {
              scriptValidationContext = new ScriptValidationContext(messageType.toString());
  
              getAction().getValidationContexts().add(scriptValidationContext);
          }
  
          return scriptValidationContext;
      }
docs: Creates new script validation context if not done before and gets the script validation context.