public void setData(Directory<? extends DirectoryItemRO> dir, DirectoryItemRO current,
String label) throws ClipsException {
Selector<?> selector = dir.getItems();
ArrayList<ChoosePanelData> data = new ArrayList<ChoosePanelData>();
for(int i=0; i< selector.size(); i++) {
DirectoryItemRO item = (DirectoryItemRO) selector.get(i);
/*if(!item.isVisible()) {
continue;
}*/
ChoosePanelData d = buildData(item);
data.add(d);