void (ApplicationImpl app) { app.registerServiceInstance(TransactionGuard.class, app.myTransactionGuard, ComponentManagerImpl.fakeCorePluginDescriptor); app.registerServiceInstance(Application.class, app, ComponentManagerImpl.fakeCorePluginDescriptor); app.registerServiceInstance(ReadActionCache.class, app.myReadActionCacheImpl, ComponentManagerImpl.fakeCorePluginDescriptor); }