if (!configuredContext.isSessionPersistence()) {
contextsWithoutSessionPersistence.add(ctx);
}
}
System.setOut(new SystemLogHandler(System.out));
System.setErr(new SystemLogHandler(System.err));
boolean useShutdownPort = config.getShutdown() != null && config.getShutdown().getPort() != null;
if (useShutdownPort) {
tomcat.getServer().setPort(config.getShutdown().getPort());
tomcat.getServer().setShutdown(config.getShutdown().getCommand());