private CacheLoaderArgument initializeCacheLoaderArgument ( final boolean filterTemplateCatalog ) { final LoaderCallback loaderCallback = new LoaderCallback ( ) { @ Override public Catalog loadCatalog ( final List < String > catalogXMLs , final Long tenantRecordId ) throws CatalogApiException { return loader . load ( catalogXMLs , filterTemplateCatalog , tenantRecordId ) ; } } ; final Object [ ] args = new Object [ 1 ] ; args [ 0 ] = loaderCallback ; final ObjectType irrelevant = null ; final InternalTenantContext notUsed = null ; return new CacheLoaderArgument ( irrelevant , args , notUsed ) ; }
This is a contract between the TenantCatalogCacheLoader and the DefaultCatalogCache