public static ImageCodec lookup(Format format) {
        ImageCodec codec = params.get(format);
        if (codec == null) {
            throw new UnsupportedOperationException("The format " + format + " is not supported");
        }
        return codec;
    }
Looks up the format in the codec registry.
The codec will be able to decode the given format.

@param format The format to lookup.
@return The codec capable of decoding it, or null if not found.
jme3-core/src/main/java/com/jme3/texture/image/ImageCodec.java