/* */ {
/* 117 */ scopeKey.freeze();
/* 118 */ context.getScopeInfo().setInstallScope(scopeKey);
/* */
/* 127 */ MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
/* 128 */ MetaDataRetrieval mdr = mmdr.getMetaDataRetrieval(scopeKey);
/* 129 */ if (mdr == null)
/* */ {
/* 131 */ mdr = new MemoryMetaDataLoader(scopeKey);
/* 132 */ mmdr.addMetaDataRetrieval(mdr);
/* */ }
/* 134 */ MetaDataItem controllerItem = mdr.retrieveMetaData(ScopedKernelController.class);
/* */ ScopedKernelController scopedController;
/* */ ScopedKernelController scopedController;
/* 136 */ if (controllerItem != null)
/* */ {
/* 138 */ scopedController = (ScopedKernelController)controllerItem.getValue();
/* */ }
/* */ else
/* */ {
/* 142 */ AbstractController parentController = null;
/* 143 */ ScopeKey parentKey = scopeKey.getParent();
/* 144 */ while ((parentController == null) && (parentKey != null))
/* */ {
/* 146 */ MetaDataRetrieval pmdr = mmdr.getMetaDataRetrieval(parentKey);
/* 147 */ if (pmdr != null)
/* */ {
/* 149 */ MetaDataItem pci = pmdr.retrieveMetaData(ScopedKernelController.class);
/* 150 */ if (pci != null)
/* */ {
/* 152 */ parentController = (AbstractController)pci.getValue();
/* */ }
/* */ }