public void insertRecord(int rowIndex) {
DatasetEditorTable editorTable = getEditorTable();
if (editorTable != null) {
DBDataset dataset = getDataset();
try {
editorTable.stopCellEditing();
resultSet.moveToInsertRow();
DatasetEditorModelRow newRow = createRow(getRowCount()+1);
newRow.setInsert(true);
addRowAtIndex(rowIndex, newRow);
notifyRowsInserted(rowIndex, rowIndex);