ctx.setBranding(branding);
ctx.setLayoutManager(osgiLayoutManager.createLayoutManagerForShell(branding.getName()));
// Would be nice to copy the env variables.. but can't cause it has imutable values
// that the DefaultEnvironment tries to overwrite.
Environment environment = new DefaultEnvironment(ctx.getIo(), new DefaultVariables());
ctx.setEnvironment(environment);
IOTargetSource.setIO(ctx.getIo());
EnvironmentTargetSource.setEnvironment(environment);
InteractiveShell interactiveShell = createInteractiveShell(ctx);
if( args!=null && args.length>0 ) {