// if these classes are here, then the runtime environment has
// access to JAI and the JAI ImageI/O toolbox.
try {
Class.forName("it.geosolutions.imageio.plugins.jp2mrsid.JP2GDALMrSidImageReaderSpi");
available = new JP2GDALMrSidImageReaderSpi().isAvailable();
if (LOGGER.isLoggable(Level.FINE)) {
if (available) {
LOGGER.fine("JP2MrSIDFormatFactory is availaible.");
} else {