public static boolean performOpenJDKJpegTest() {
   try {
     TileImageJpegDataWriter writer = new TileImageJpegDataWriter(0.99d);
     writer.initialize();
     OutputStream out = new NullOutputStream();
     BufferedImage image = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB);
     writer.processImage(image, out);
     return true;
   } catch (Exception e) {
     log.debug("Jpeg test failed", e);
     return false;
   }
 }
 public TileImageJpegDataWriter(TileImageJpegDataWriter jpegWriter) {
   this(jpegWriter.getJpegCompressionLevel());
 }