}
public void contextInitialized(ServletContextEvent event) {
// setup GeoTools logging redirection (to log4j by default, but so that it can be overridden)
final ServletContext context = event.getServletContext();
GeoToolsLoggingRedirection logging = GeoToolsLoggingRedirection.findValue(
GeoServerExtensions.getProperty(LoggingUtils.RELINQUISH_LOG4J_CONTROL,
context));
try {
if(logging == GeoToolsLoggingRedirection.JavaLogging) {
// no redirection needed