class CollectionDao extends HibernateDao<Collection, String> {

   @Override
   public void delete (final Collection collection)
   {
      // remove references
      cfgManager.getScannerManager().deleteCollectionReferences(collection.getName());
      // delete collection
      super.delete (collection);
   }

}