/**
  * This method returns the offering information.
  *
  * @return The reference to the offerings.
  * @throws com.rift.coad.catalog.client.offering.OfferingException
  */
 public CatalogOffering[] getOfferings() throws OfferingException {
   try {
     CatalogManagerDaemon daemon =
         (CatalogManagerDaemon)
             ConnectionManager.getInstance()
                 .getConnection(CatalogManagerDaemon.class, "catalog/CatalogManagerDaemon");
     return (CatalogOffering[]) RDFCopy.copyToClientArray(daemon.getCatalogOfferings());
   } catch (Exception ex) {
     log.error("Failed to list the offerings : " + ex.getMessage(), ex);
     throw new OfferingException("Failed to list the offerings : " + ex.getMessage());
   }
 }
 /**
  * This method updates the offering information.
  *
  * @param entry The entry to update the offering on.
  * @throws com.rift.coad.catalog.client.offering.OfferingException
  */
 public void updateOffering(CatalogOffering entry) throws OfferingException {
   try {
     CatalogManagerDaemon daemon =
         (CatalogManagerDaemon)
             ConnectionManager.getInstance()
                 .getConnection(CatalogManagerDaemon.class, "catalog/CatalogManagerDaemon");
     daemon.updateCatalogOffering(
         (com.rift.coad.catalog.rdf.CatalogOffering) RDFCopy.copyFromClient(entry));
   } catch (Exception ex) {
     log.error("Failed to update an offering : " + ex.getMessage(), ex);
     throw new OfferingException("Failed to update an offering : " + ex.getMessage());
   }
 }