List<State> states;
try {
states = (List<State>) system.query(new GetStatesList());
for (State state : states) {
List<City> citiesList = state.getCityList();
MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
sortAlgorithm.sortCitiesByName(citiesList);
for (City city : citiesList) {
TableItem item = new TableItem(citiesTable, SWT.LEFT);
item.setText(0, city.getId());
item.setText(1, state.getAcronym());
item.setText(2, city.getCityName());