Update the security actions to use singletons where possible and to only use the AccessController if there really is a SecurityManager.