try {
if (treeFarmGroup.getSelectionPath() != null) {
Object obj = treeFarmGroup.getSelectionPath().getLastPathComponent();
items = null;
if (obj instanceof DirectoryDrugFarmGroupItem) {
DirectoryDrugFarmGroupItem farmGroup = (DirectoryDrugFarmGroupItem) obj;
items = dirDrug.getItemsByFarmGroup(farmGroup);
}
tableDrugListGroup.setModel(new TableModelDrugList(items));
}
} catch (ClipsException ex) {