I have a messaging framework that need to create contexts and clear contexts on message invocation/response. I don't see a way of doing this right now as any access to the thread locals are package protected or create context objects I don't want to create.
Look at how SOAPRequestHandler does it, for an example.