This needs to be done through WildFlySecurityManager for security checks