PluggableMapIO p = (PluggableMapIO) c.newInstance(); String clname = c.toString(); clname = clname.substring(clname.indexOf(' ')+1); String filter = p.getFilter(); String[] ext = filter.split(",");  if (isReader(c)) { for(int i = 0; i < ext.length; i++) { readerFormats.put(ext[i], clname); } } else { for (int i = 0; i < ext.length; i++){ writerFormats.put(ext[i], clname); } }
try{ PluggableMapIO p = (PluggableMapIO) c.newInstance(); String clname = c.toString(); clname = clname.substring(clname.indexOf(' ')+1); String filter = p.getFilter(); String[] ext = filter.split(",");  if (isReader(c)) { for(int i = 0; i < ext.length; i++) { readerFormats.put(ext[i], clname); } } else { for (int i = 0; i < ext.length; i++){ writerFormats.put(ext[i], clname); } } }catch (NoClassDefFoundError e) { System.err.println("**Failed loading plugin: "+e.toString()); }
    private void _add(Class c) throws Exception{        PluggableMapIO p = (PluggableMapIO) c.newInstance();        String clname = c.toString();        clname = clname.substring(clname.indexOf(' ')+1);        String filter = p.getFilter();        String[] ext = filter.split(",");        if (isReader(c)) {            for(int i = 0; i < ext.length; i++) {                readerFormats.put(ext[i], clname);            }        } else {            for (int i = 0; i < ext.length; i++){                writerFormats.put(ext[i], clname);            }        }    }