BelongStudentGroup belong = new BelongStudentGroup(((User)i.next()).getIdUser(), group);
BelongStudentGroup belong = (BelongStudentGroup) i.next();
	public void removeGroup(Group group) throws RemoteException, HibernateException {	    Session session = null;        try {            TransactionManager.beginTransaction();            session = Hibernate.getCurrentSession();            Set p = group.getStudents();            if (p != null) {	            for (Iterator i = p.iterator(); i.hasNext(); ) {	                BelongStudentGroup belong = new BelongStudentGroup(((User)i.next()).getIdUser(), group);	                remove(TABLE_BELONG, new _BelongStudentGroupFilter(belong), session);	            }            }            remove(TABLE, new GroupFilter(group), session);            notifyListeners(group, ChangeListener.TYPE_REMOVE);            TransactionManager.commit();        } catch (HibernateException e) {            TransactionManager.rollback();            throw e;        } finally {            Hibernate.closeSession();        }	}