}
}
}//GEN-LAST:event_btRemoveActionPerformed
private void deleteDanger(DirectoryDangerItem dangerItem) throws ClipsException {
DirectoryDanger dangers = (DirectoryDanger) DirectoryLocator.getDirectory(DirectoryDanger.class, false);
ClipsException hasException = null;
SelectorEditableExceptional<DirectoryDangerItem> iie = dangerItem.getItems();
for (int i = iie.size() - 1; i > -1; i--) {
DirectoryDangerItem item = iie.get(i);
try {
deleteDanger(item);
} catch (ClipsException ex) {
hasException = ex;
}
}
DirectoryDangerItem parent = dangerItem.getParent();
if (parent == null) {
iie = dangers.getItems();
}
else {
iie = parent.getItems();
}
if (hasException == null) {