// 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.ecw.ECWImageReaderSpi");
available = new ECWImageReaderSpi().isAvailable();
if (LOGGER.isLoggable(Level.FINE)) {
if (available)
LOGGER.fine("ECWFormatFactory is availaible.");
else