Element newStateElement = document.createElement("ECState");
Element newActionElement = document.createElement("ECAction");
newStateElement.appendChild(newActionElement);
aoTable.setModel(new ECActionsTableModel(isForAddingState? newStateElement : stateElement));
//Setting properties of the first column of aoTable
TableColumn firstColumn = aoTable.getColumnModel().getColumn(0);
DefaultTableCellRenderer firstColumnRenderer = new DefaultTableCellRenderer();
firstColumnRenderer.setHorizontalAlignment(SwingConstants.CENTER);