private static synchronized boolean isXrandrExtensionSupported(){
  if (xrandrExtSupported == null) {
    xrandrExtSupported=Boolean.valueOf(initXrandrExtension());
  }
  return xrandrExtSupported.booleanValue();
}

private static synchronized boolean isXrandrExtensionSupported ( ) { if ( xrandrExtSupported == null ) { xrandrExtSupported = Boolean . valueOf ( initXrandrExtension ( ) ) ; } return xrandrExtSupported . booleanValue ( ) ; }
returns true only if : - the xrandr extension is present - the necessary xrandr functions were loaded successfully
