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