LoggingContext context = Context.get(LoggingContext.class);
if (context == null) {
synchronized (LoggingContext.class) {
context = Context.get(LoggingContext.class);
if (context == null) {
(context = new LoggingContext(new LoggingFrameworkWriter(new PrintWriter(System.out, true)))).setGlobal();
}
}
}
return context;
}