Fixed anonymous inner class implementation to always use the plugin's current SecurityManager reference.