}else if (delegate instanceof DiagnosisLocal){
newNode = new DiagnosisNode(current, (DiagnosisLocal)delegate);
}else if (delegate instanceof CheckupLocal){
newNode = new CheckupNode(current,(CheckupLocal) delegate);
}else if (delegate instanceof ContraindicationLocal){
newNode = new ContraindicationNode(current,(ContraindicationLocal) delegate);
}else if (delegate instanceof DirectionLocal){
newNode = new DirectionNode(current,(DirectionLocal) delegate);
}else if (delegate instanceof PrescriptionLocal){
newNode = new PrescriptionNode(current,(PrescriptionLocal) delegate);
}else if (delegate instanceof PrescriptionDloLocal){