public static void restoreHeadlessMode(){
  if (GraphicsEnvironment.isHeadless() && !isDefaultHeadless) {
    setHeadless(false);
  }
}

public static void restoreHeadlessMode ( ) { if ( GraphicsEnvironment . isHeadless ( ) && ! isDefaultHeadless ) { setHeadless ( false ) ; } }
restore the original headless setting of when the jvm was started . this is necessary for when evosuite tests ( which are in headless mode ) are run together with manual tests that are not headless .
