@Override
  public DDMFormValues replaceImportContentReferences(
      PortletDataContext portletDataContext, StagedModel stagedModel, DDMFormValues ddmFormValues)
      throws Exception {

    DDMFormValuesTransformer ddmFormValuesTransformer = new DDMFormValuesTransformer(ddmFormValues);

    ddmFormValuesTransformer.addTransformer(
        new FileEntryImportDDMFormFieldValueTransformer(portletDataContext));
    ddmFormValuesTransformer.addTransformer(
        new LayoutImportDDMFormFieldValueTransformer(portletDataContext));

    ddmFormValuesTransformer.transform();

    return ddmFormValues;
  }
  @Override
  public DDMFormValues replaceExportContentReferences(
      PortletDataContext portletDataContext,
      StagedModel stagedModel,
      DDMFormValues ddmFormValues,
      boolean exportReferencedContent,
      boolean escapeContent)
      throws Exception {

    DDMFormValuesTransformer ddmFormValuesTransformer = new DDMFormValuesTransformer(ddmFormValues);

    ddmFormValuesTransformer.addTransformer(
        new FileEntryExportDDMFormFieldValueTransformer(
            exportReferencedContent, portletDataContext, stagedModel));
    ddmFormValuesTransformer.addTransformer(
        new LayoutExportDDMFormFieldValueTransformer(portletDataContext, stagedModel));

    ddmFormValuesTransformer.transform();

    return ddmFormValues;
  }