/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated NOT
  */
 public List<IComment> getDrafts() {
   List<IComment> drafts = new ArrayList<IComment>(getComments());
   for (IComment comment : getComments()) {
     if (comment.isDraft()) {
       drafts.add(comment);
     }
   }
   return new EObjectEList.UnmodifiableEList<IComment>(
       this, ReviewsPackage.Literals.COMMENT_CONTAINER__DRAFTS, drafts.size(), drafts.toArray());
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated NOT
  */
 public IComment createComment(ILocation initalLocation, String commentText) {
   IComment comment = ReviewsFactory.eINSTANCE.createComment();
   comment.setDescription(commentText);
   comment.setDraft(true);
   Date created = new Date();
   comment.setCreationDate(created);
   if (initalLocation != null) {
     comment.getLocations().add(initalLocation);
   }
   getComments().add(comment);
   return comment;
 }