Fix issue when getEjbObject() when running under a security manager
Merge pull request #6505 from stuartwdouglas/ejb-security-manager

Fix issue when getEjbObject() when running under a security manager