protected SkinnyDDLRecord getSkinnyDDLRecord(DDLRecord ddlRecord) throws Exception {

    SkinnyDDLRecord skinnyDDLRecord = new SkinnyDDLRecord();

    skinnyDDLRecord.addDynamicElement("uuid", ddlRecord.getUuid());

    DDMFormValues ddmFormValues = ddlRecord.getDDMFormValues();

    populateSkinnyDDLRecord(
        skinnyDDLRecord, ddmFormValues.getDDMFormFieldValues(), ddmFormValues.getDefaultLocale());

    return skinnyDDLRecord;
  }
  @Override
  public AssetRenderer<DDLRecord> getAssetRenderer(long classPK, int type) throws PortalException {

    DDLRecord record = null;
    DDLRecordVersion recordVersion = null;

    if (type == TYPE_LATEST) {
      recordVersion = DDLRecordVersionLocalServiceUtil.getRecordVersion(classPK);

      record = recordVersion.getRecord();
    } else {
      record = DDLRecordLocalServiceUtil.getRecord(classPK);

      recordVersion = record.getRecordVersion();
    }

    DDLRecordAssetRenderer ddlRecordAssetRenderer =
        new DDLRecordAssetRenderer(record, recordVersion);

    ddlRecordAssetRenderer.setAssetRendererType(type);
    ddlRecordAssetRenderer.setServletContext(_servletContext);

    return ddlRecordAssetRenderer;
  }