// implements Initializable
// -------------------------------------------------------------------------
public void initialize() throws Exception {
final NimbusMasterContext master =
NimbusLocalMasterContext.discoverApplicationContext();
this.manager = master.getModuleLocator().getManager();
// something in this layer needs to init the metadata server at
// container startup (lame)
master.getModuleLocator().getMetadataServer();
this.translate = new InstanceTranslate(
master.getModuleLocator().getReprFactory(),
master.getBaseURL());
this.secDescPath = master.getBaseLocation() + File.separator +
Constants_GT4_0.SERVICE_SECURITY_CONFIG;
final URL url = this.getClass().getResource("ehcache.xml");
final CacheManager cacheManager = new CacheManager(url);
this.cache = cacheManager.getCache("instanceCache");
this.timerManager = master.discoverTimerManager();
// todo: go through persistent subscriptions and re-register statechange
// and destruction listeners with manager
this.manager.recover_initialize();