+
+ private static boolean isHeadless(BootstrapArgs bootstrapArgs)
+ {
+ if (bootstrapArgs == null)
+ {
+ return false;
+ }
+ boolean isHeadless = false;
+ if (bootstrapArgs.contains(Arg.GUI))
+ {
+ isHeadless = !bootstrapArgs.getBoolean(Arg.GUI);
+ }
+ else if (bootstrapArgs.contains(Arg.HEADLESS))
+ {
+ isHeadless = bootstrapArgs.getBoolean(Arg.HEADLESS);
+ }
+ else if (bootstrapArgs.argsHaveOption(Opt.OUTPUTFILE))
+ {
+ isHeadless = true;
+ }
+ return isHeadless;
+ }