public TableModel getTableModel(){
        return (comparatorNodeTableModel != null && comparatorNodeTableModel.getRowCount() != 0)? comparatorNodeTableModel :oldNode != null? oldNode.getNodeTableModel():newNode.getNodeTableModel();
    }