@SuppressWarnings("unchecked")
public void addBankAcountsToBeChecked(TreeItem treeitem){
Map<String, Account> accountsMap;
try {
accountsMap = (Map<String, Account>) system.query(new GetAccounts());
List<Account> accounts = new ArrayList<Account>();
accounts.addAll(accountsMap.values());
SortComparator comparator = new SortComparator();
Collections.sort(accounts, comparator);