/**
  * return a list of silverContent according to a list of publicationPK
  *
  * @param ids a list of publicationPK
  * @return a list of publicationDetail
  */
 private List getHeaders(List ids) {
   QuestionContainerHeader containerHeader = null;
   ArrayList headers = new ArrayList();
   try {
     ArrayList questionHeaders =
         (ArrayList) getQuestionBm().getQuestionContainerHeaders((ArrayList) ids);
     for (int i = 0; i < questionHeaders.size(); i++) {
       containerHeader = (QuestionContainerHeader) questionHeaders.get(i);
       containerHeader.setIconUrl("quizzSmall.gif");
       headers.add(containerHeader);
     }
   } catch (RemoteException e) {
     // skip unknown and ill formed id.
   }
   return headers;
 }
 /**
  * return a list of publicationPK according to a list of silverContentId
  *
  * @param idList a list of silverContentId
  * @param peasId the id of the instance
  * @return a list of publicationPK
  */
 private ArrayList makePKArray(List idList, String peasId) {
   ArrayList pks = new ArrayList();
   QuestionContainerPK qcPK = null;
   Iterator iter = idList.iterator();
   String id = null;
   // for each silverContentId, we get the corresponding publicationId
   while (iter.hasNext()) {
     int contentId = ((Integer) iter.next()).intValue();
     try {
       id = getContentManager().getInternalContentId(contentId);
       qcPK = new QuestionContainerPK(id, "useless", peasId);
       pks.add(qcPK);
     } catch (ClassCastException ignored) {
       // ignore unknown item
     } catch (ContentManagerException ignored) {
       // ignore unknown item
     }
   }
   return pks;
 }