/* (non-Javadoc)
     * @see org.sakaiproject.citation.impl.BaseCitationService.Storage#putCollection(java.util.Map, java.util.List)
     */
    public CitationCollection addCollection(Map attributes, List citations) {
      // need to create a collection (referred to below as "edit")
      CitationCollection edit = new BasicCitationCollection(attributes, citations);

      this.m_collections.put(edit.getId(), edit);

      return edit;
    }
    public CitationCollection copyAll(String collectionId) {
      CitationCollection original = (CitationCollection) this.m_collections.get(collectionId);
      CitationCollection copy = null;

      if (original != null) {
        copy = new BasicCitationCollection();
        Iterator it = original.iterator();
        while (it.hasNext()) {
          Citation citation = (Citation) it.next();
          BasicCitation newCite = new BasicCitation();
          newCite.copy(citation);
          copy.add(newCite);
          m_citations.put(newCite.getId(), newCite);
        }
        m_collections.put(copy.getId(), copy);
      }

      return copy;
    }
 /* (non-Javadoc)
  * @see org.sakaiproject.citation.impl.BaseCitationService.Storage#saveCollection(java.util.Collection)
  */
 public void saveCollection(CitationCollection collection) {
   this.m_collections.put(collection.getId(), collection);
 }
 /* (non-Javadoc)
  * @see org.sakaiproject.citation.impl.BaseCitationService.Storage#removeCollection(org.sakaiproject.citation.api.CitationCollectionEdit)
  */
 public void removeCollection(CitationCollection edit) {
   this.m_collections.remove(edit.getId());
 }