}
DelegateSession is = (DelegateSession) session;
// make it active
SecuredCommandProcessorImpl secCP = new SecuredCommandProcessorImpl(bundleContext);
CommandSession s = secCP.createSession(consoleInput, out, err);
// before the session is activated attributes may have been set on it. Pass these on to the real session now
is.setDelegate(s);
return secCP;
}