}else{
EmcTreeNode node = getCurrentSelectedNode();
if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT) == MessageBox.ANSWER_YES){
if (node != null){
if (node.getDelegate() instanceof DelegateNode) {
DelegateNode child = (DelegateNode) node.getDelegate();
if (child instanceof SerRenLocal && ((SerRenLocal)child).getPacketServiceID() != 0) {
if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_SERV_FROM_PACK) != MessageBox.ANSWER_YES) {
return;
}
((SerRenLocal)child).removeAndBreakPacket();
} else if (child instanceof DiseaseLocal && ((DiseaseLocal)child).isMedexam()) {
((DiseaseLocal)child).getMedexamLocal().remove();
} else {
child.remove();
}
try{
if (isPathContains(lastSelectionPath, node)){
lastSelectionPath = null;
}