if (aClass.equals(ContraindicationLocal.class)) {
leaf = new ContraindicationLocal(selectedService);
} else if (aClass.equals(CheckupLocal.class)) {
leaf = new CheckupLocal(selectedService);
} else if (aClass.equals(PrescriptionLocal.class)) {
leaf = new PrescriptionLocal(selectedService);
} else if (aClass.equals(DirectionLocal.class)) {
leaf = new DirectionLocal(selectedService);
} else if (aClass.equals(RecommendationLocal.class)) {
leaf = new RecommendationLocal(selectedService);
} else if (aClass.equals(DiagnosisLocal.class)) {