removed headless profile, replaced it with apple.awt.UIElement instead of java.awt.headless parameter
(cherry picked from commit 5158fc56c14a57385e265c776b8adce3a48ea563)