ServiceContextFactory

This utility provides the parameters needed to call a service bean outside the post-processor context.

var contextFactory = new ServiceContextFactory(manager, datastore);

IServiceContext context = contextFactory.getMostRecentVersion(List.of());

Map<String, Map<String, Integer>> tenors = PostProcessorUtils.getInCacheOrCompute(
        context.getQueryCache(),
        () -> tenorUtil.getTenorLabelToIndexMapping(context, asOfDate, bucketType),
        asOfDate, bucketType);