@Override
public int getIndexOfChild(Object parent, Object child) {
if (parent instanceof TreeNode/*
&& child instanceof TreeNode*/) return super.getIndexOfChild(parent, child);
if (parent instanceof DirectoryMKB10Item){
DirectoryMKB10Item p = (DirectoryMKB10Item) parent;
DirectoryMKB10Item c = (DirectoryMKB10Item) child;
// try {
for (int i = 0; i< p.getItems().size(); i++){
if (c.getID() == p.getItems().get(i).getID()){
return i;
}
}
/* } catch (ClipsException ex) {