FELIX-3903 - avoid using classes requiring Swing or AWT, it makes headless CI unhappy

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1450878 13f79535-47bb-0310-9956-ffa450edef68