examinedTask.getDirectObject()).getAssets().iterator().next();
examinedTask.getDirectObject()).getAssets().iterator().next(); } else { examinedDO = (Container)examinedTask.getDirectObject (); }  ContentsPG contents = taskDO.getContentsPG (); Collection typeIDs  = contents.getTypeIdentifications ();  ContentsPG examinedContents = examinedDO.getContentsPG (); Collection examinedTypeIDs  = examinedContents.getTypeIdentifications ();  StringBuffer buf =new StringBuffer();  buf.append("["); for (Iterator iter = typeIDs.iterator(); iter.hasNext();) buf.append(iter.next() + ", "); buf.append("]"); buf.append(" vs "); buf.append("["); for (Iterator iter = examinedTypeIDs.iterator(); iter.hasNext();) buf.append(iter.next()); buf.append("]");  return buf.toString();
  protected String reportContentTypes (Task task, Task examinedTask){    Container taskDO = (Container)task.getDirectObject ();    Container examinedDO;    if (examinedTask.getDirectObject() instanceof AssetGroup) {      examinedDO=          (Container) ((AssetGroup)          examinedTask.getDirectObject()).getAssets().iterator().next();    }    else {      examinedDO = (Container)examinedTask.getDirectObject ();    }    ContentsPG contents = taskDO.getContentsPG ();    Collection typeIDs  = contents.getTypeIdentifications ();    ContentsPG examinedContents = examinedDO.getContentsPG ();    Collection examinedTypeIDs  = examinedContents.getTypeIdentifications ();    StringBuffer buf =new StringBuffer();    buf.append("[");    for (Iterator iter = typeIDs.iterator(); iter.hasNext();)      buf.append(iter.next() + ", ");    buf.append("]");    buf.append(" vs ");    buf.append("[");    for (Iterator iter = examinedTypeIDs.iterator(); iter.hasNext();)      buf.append(iter.next());    buf.append("]");    return buf.toString();  }