private boolean isSupported(final Object input) {
        ImageReaderSpi spi = getOriginatingProvider();
        if (null != spi) {
            Class<?>[] outTypes = spi.getInputTypes();

            for (Class<?> element : outTypes) {
                if (element.isInstance(input)) {
                    return true;
                }
            }
        }
        return false;
    }