public void deleteProduct(Product product) {
   HibernateUtils.deleteElement(product);
 }
 public Collection<Product> getAllProducts() {
   return HibernateUtils.getAllElements(Product.class);
 }
 public void updateProduct(Product product) {
   HibernateUtils.updateElement(product);
 }
 public Product getProduct(int id) {
   return HibernateUtils.getElement(Product.class, id);
 }
 public void addProduct(Product product) {
   HibernateUtils.addElement(product);
 }