Modified for codeTable.Made getStateCode method as synchronized