private static boolean isHeadless(){
  return GraphicsEnvironment.isHeadless();
}

private static boolean isHeadless ( ) { return GraphicsEnvironment . isHeadless ( ) ; }
is the graphics environment headless ?
