not that happy about this thread local but easiest way to ensure to keep earlib webbeanscontext if needed