Fix for WFLY-1282.