Minor simplification.
Make registry caching a decoration.
Fix SSL test fixture for JDK bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7142172
Rationalise the registry handling to make object pooling (of registries) possible.