public Boolean checkForEqualityStudents(){
        if (logger.isDebugEnabled()){
            logger.debug("Called checking for equality");
        }
        if (elemGr != null) {
            for (int i = 0; i < groups.size(); i++) {
                if (elemGr.equals(groups.get(i).getFakulty()) || elemGr.equals(groups.get(i).getNumber())){
                    groupNumber = groups.get(i).getNumber();
                    currentfakulty = groups.get(i).getFakulty();
                }
            }
        }
        try {
            if (tb.getModel().getRowCount()== client.getShow(currentfakulty, groupNumber).size()){
                return true;
            }else {
                return false;
            }
        }catch (ClientException e) {
            logger.error("Error while cheking for equality.Something wrong with client data",e);
            JOptionPane.showMessageDialog(frame, "Something wrong with client data while checking for equality" );
        }catch(ServerException e){
            logger.error("Error while cheking for equality.Somethinf wrong with client data",e);
            JOptionPane.showMessageDialog(frame, "Something wrong with client data while checking for equality" );
        }
        return null;
    }