ClientLocal client = delegate.getEmcLocal().getClient();
if (delegate.isMedexam()){
return new PanelMedexamEdit(pageContainer, client, delegate.getMedexamLocal());
}
if (delegate.isProfcheckup()){
ProfcheckupSearchLocal search = new ProfcheckupSearchLocal(new AuditManager());
List<ProfcheckupItemLocal> items = search.getItemsBy(delegate);
return new PanelProfcheckupItemsList(pageContainer, items);
}
return new PanelDisease(pageContainer, client, delegate);
}