public String getSilverObjectId() {
   if (this.silverObjectId == null) {
     ContentManager contentManager = ContentManagerFactory.getFactory().getContentManager();
     try {
       int objectId = contentManager.getSilverContentId(getId(), getInstanceId());
       if (objectId >= 0) {
         this.silverObjectId = String.valueOf(objectId);
       }
     } catch (ContentManagerException ex) {
       this.silverObjectId = null;
     }
   }
   return this.silverObjectId;
 }
  public String getCurrentQuestionContentId() {
    String contentId = null;

    if (currentQuestion != null) {
      try {
        ContentManager contentManager = new ContentManager();

        contentId =
            ""
                + contentManager.getSilverContentId(
                    currentQuestion.getPK().getId(), currentQuestion.getInstanceId());
      } catch (ContentManagerException ignored) {
        SilverTrace.error(
            "questionReply",
            "QuestionReplySessionController",
            "questionReply.EX_UNKNOWN_CONTENT_MANAGER",
            ignored);
        contentId = null;
      }
    }

    return contentId;
  }