@Override
  protected Long getAssetClassPK(ClassedModel classedModel) {
    if (classedModel instanceof JournalArticle) {
      JournalArticle article = (JournalArticle) classedModel;

      try {
        JournalArticleResource journalArticleResource =
            JournalArticleResourceLocalServiceUtil.getArticleResource(article.getResourcePrimKey());

        return journalArticleResource.getResourcePrimKey();
      } catch (Exception e) {
        return super.getAssetClassPK(classedModel);
      }
    } else {
      return super.getAssetClassPK(classedModel);
    }
  }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof JournalArticleResource)) {
      return false;
    }

    JournalArticleResource journalArticleResource = (JournalArticleResource) obj;

    long primaryKey = journalArticleResource.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
  @Override
  public int compareTo(JournalArticleResource journalArticleResource) {
    long primaryKey = journalArticleResource.getPrimaryKey();

    if (getPrimaryKey() < primaryKey) {
      return -1;
    } else if (getPrimaryKey() > primaryKey) {
      return 1;
    } else {
      return 0;
    }
  }