System.out.println(searchResult.getAttributes().get(searchAttribute));
    public void populateList(String filter) {        namesVector.clear();        try {            SearchControls cons = new SearchControls();            cons.setSearchScope(SearchControls.SUBTREE_SCOPE);                        NamingEnumeration enum = context.search(basedn, filter, cons);            int i = 0;            while (enum.hasMore()) {            i++;            SearchResult searchResult = (SearchResult)enum.next();            namesVector.add(searchResult.getAttributes().get(searchAttribute).toString());            System.out.println(searchResult.getAttributes().get(searchAttribute));                    }             enum.close();            //namesList.setListData(namesVector);            detailPanel.removeAll();        }