@Override
  public int getTrashContainedModelsCount(long classPK) throws PortalException {

    BookmarksFolder folder = BookmarksFolderLocalServiceUtil.getFolder(classPK);

    return BookmarksEntryLocalServiceUtil.getEntriesCount(
        folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH);
  }
  @Override
  public AssetRenderer<BookmarksEntry> getAssetRenderer(long classPK, int type)
      throws PortalException {

    BookmarksEntry entry = BookmarksEntryLocalServiceUtil.getEntry(classPK);

    BookmarksEntryAssetRenderer bookmarksEntryAssetRenderer =
        new BookmarksEntryAssetRenderer(entry);

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

    return bookmarksEntryAssetRenderer;
  }
  @Override
  public List<TrashRenderer> getTrashContainedModelTrashRenderers(long classPK, int start, int end)
      throws PortalException {

    List<TrashRenderer> trashRenderers = new ArrayList<TrashRenderer>();

    BookmarksFolder folder = BookmarksFolderLocalServiceUtil.getFolder(classPK);

    List<BookmarksEntry> entries =
        BookmarksEntryLocalServiceUtil.getEntries(
            folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH, start, end);

    for (BookmarksEntry entry : entries) {
      TrashHandler trashHandler =
          TrashHandlerRegistryUtil.getTrashHandler(BookmarksEntry.class.getName());

      TrashRenderer trashRenderer = trashHandler.getTrashRenderer(entry.getEntryId());

      trashRenderers.add(trashRenderer);
    }

    return trashRenderers;
  }
  @Override
  protected void updateBaseModel(long baseModelId) throws Exception {
    BookmarksEntry entry = BookmarksEntryLocalServiceUtil.getEntry(baseModelId);

    BookmarksTestUtil.updateEntry(entry);
  }