protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.dynamic.data.mapping.service.DDMContentLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(DDMContent.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("contentId");
  }
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.dynamic.data.mapping.service.DDMContentLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(DDMContent.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("contentId");

    return actionableDynamicQuery;
  }