final ServletContext servletContext =
(ServletContext) context.getService(serviceReference);
final String log4jConfigFile =
servletContext.getInitParameter("map.log4j.config.file");
Log4jHelper.initializeLogging(log4jConfigFile,
new ServletContextConfigurationResolver(servletContext),
DEFAULT_LOG4J_LOCATION, PREDEFINED_LOG4J_LOCATION);
}