code: public String getValidationScript(TestContext context) {
          try {
              if (validationScriptResourcePath != null) {
                  return context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(validationScriptResourcePath, context),
                          Charset.forName(context.replaceDynamicContentInString(validationScriptResourceCharset))));
              } else if (validationScript != null) {
                  return context.replaceDynamicContentInString(validationScript);
              } else {
                  return "";
              }
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to load validation script resource", e);
          }
      }
docs: Constructs the actual validation script either from data or external resource.
  @param context the current TestContext.
  @return the validationScript
  @throws CitrusRuntimeException