@Override
public void install(ControllerState fromState, ControllerState toState) throws Throwable
{
if (toState.equals(ControllerState.INSTANTIATED))
{
ScopeInfo scopeInfo = getScopeInfo();
scopeInfo.addMetaData(repository, this);
ScopeKey scope = scopeInfo.getMutableScope();
MemoryMetaDataLoader loader = (MemoryMetaDataLoader) repository.getMetaDataRetrieval(scope);
loader.addMetaData("FromInstall", "testFromInstall", String.class);
// Initialise the full key
ScopeKey full = scopeInfo.getScope();
if (repository.getMetaDataRetrieval(full) == null)
scopeInfo.initMetaDataRetrieval(repository, this);
}
}