JAL-4262 Made deprecation warning properly modal