if (key.endsWith(ext)) {
if (key.endsWith(ext.toLowerCase())) {
    public Object getReaderFor(String ext) throws Exception {        Iterator itr = readerFormats.keySet().iterator();        while (itr.hasNext()){            String key = (String)itr.next();            if (key.endsWith(ext)) {                return loadClass((String)readerFormats.get(key)).newInstance();            }        }        throw new Exception(                "No reader plugin exists for the extension: " + ext);    }