removed headless profile, replaced it with apple.awt.UIElement instead of java.awt.headless parameter