}
item.setText(1, employee.getName());
item.setText(2, ((Employee) employee.getPersonType("employee")).getPosition());
}
} else {
List<Person> list = (List<Person>) system.query(new GetEmployeeByToken(searchText.getText()));
for (Person employee : list) {
TableItem item = new TableItem(employeeTable, SWT.NONE);
String dismissedDateText = ((Employee) employee.getPersonType("employee")).getDismissedDate();
GDDate dimissedDate = (dismissedDateText.equals(""))? null : new GDDate(dismissedDateText);