if (delegate instanceof DiseaseLocal){
newNode = new DiseaseNode(current, (DiseaseLocal) delegate);
} else if (delegate instanceof FollowupLocal){
newNode = new FollowupNode(current,(FollowupLocal) delegate);
}else if (delegate instanceof SerRenLocal){
newNode = new SerrenNode(current,(SerRenLocal) delegate);
}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){