//знаю что изврат
if (id == MagicValues.ACCESS_DENIED_ID){
if (this instanceof AccessDeniable){
return (ITEMCLASS) ((AccessDeniable)this).getNotAccessItem();
}else{
throw new DirectoryItemNotFoundException("Элемент запрещённого доступа для справочника \'"
+ getDirectoryTitle() + "\' не определён");
}
}
ITEMCLASS directoryItem = findIDX(id);
if (directoryItem != null) {
return directoryItem;
} else if (this instanceof DirectoryRecursive) {
return null;
} else {
throw new DirectoryItemNotFoundException("Элемент справочника \'" + getDirectoryTitle() + "\' № " + id + " не найден");
}
}