/** * Get list of page experiments associated to given application and page. * <p> * Use metadata cache if it is enabled or use repository to fetch from Database * * @param applicationName * @param pageName * @return */ private List<PageExperiment> getExperiments(Application.Name applicationName, Page.Name pageName) { if (metadataCacheEnabled) { return metadataCache.getPageExperiments(applicationName, pageName); } else { return pages.getExperimentsWithoutLabels(applicationName, pageName); } }