}
}
try {
String warning = rb.getString(key);
listener.warningOccurred(this, imageIndex, warning);
} catch (MissingResourceException e) {
throw new IllegalArgumentException(Messages.getString("imageio.2E"));
} catch (ClassCastException e) {
throw new IllegalArgumentException(Messages.getString("imageio.2F"));
}