class Tracer {

    public static boolean isTracingEnabled() {
        ApplicationContext context = ApplicationContext.getCurrent();
        if (context == null) {
            throw new IllegalStateException("ApplicationContext is not initialized yet. ");
        }
        return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing"));
    }

}