protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.wsrp.service.WSRPConsumerPortletLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(WSRPConsumerPortlet.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.wsrp.service.WSRPConsumerPortletLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(WSRPConsumerPortlet.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("wsrpConsumerPortletId");

    return actionableDynamicQuery;
  }