WeakHashMaps don't need to be wrapped in a synchronized map since they are called from a single method while synchronized. Pass correct FQCN when locating context via SecurityManager.