    /**
     * Creates a PDF document from a template.
     *
     * @eloas
     * @requires sol.common.Template
     * @requires sol.common.TranslateTerms
     * @requires sol.common.ObjectFormatter.TemplateSord
     * @requires sol.common.as.DocumentGenerator
     * @requires sol.common.as.ActionBase
     */
    sol.define("sol.contract.as.actions.CreateContractCoverSheet", {
      extend: "sol.common.as.ActionBase",

      /**
       * @cfg {String} targetId The target for the resulting document
       */

      /**
       * @cfg {String} templateId The template to generate the document from
       */

      requiredProperty: ["targetId", "templateId"],

      initialize: function (config) {
        var me = this;
        me.$super("sol.common.as.ActionBase", "initialize", [config]);
        me.config = sol.create("sol.common.Config", { compose: "/contract/Configuration/contract.config" }).config;
        sol.common.TranslateTerms.require("sol.contract.action.createContractCoversheet");
      },

      getName: function () {
        return "CreateContractCoverSheet";
      },

      process: function () {
        var me = this,
            name = sol.create("sol.common.Template", { source: me.config.contractCoversheet.defaultName }).applySord(me.targetId),
            generator, result;

        generator = sol.create("sol.common.as.DocumentGenerator", {
          name: name,
          dataCollector: "RF_sol_common_service_ParentDataCollector",
          renderer: "sol.common.as.renderer.Fop",
          collectorConfig: {
            objId: me.targetId,
            returnDataDefinition: true,
            allMapFields: true
          },
          rendererConfig: {
            targetId: me.targetId,
            templateId: me.templateId,
            maskId: me.config.contractCoversheet.maskId || "Contract Document"
          }
        });

        result = generator.process();

        if (result.objId) {
          me.addGotoIdEvent(result.objId);
        }
      }

    });