ctx = new RegistryContext();
try {
SystemShell sysshell = (SystemShell) ctx.lookup("java:/FRESH/SystemShell");
log.log(TRACE, "Retrieved SystemShell from RegistryContext: 'SystemShell'.");
shell = sysshell.startSession(null, false);
} catch (javax.naming.NameNotFoundException nnfe) {
throw nnfe;
}
log.debug("Using shell: " + shell);