ISPN-3392 Workaround usage of deprecated API by the security subsystem

https://issues.jboss.org/browse/ISPN-3392