Object (String classname) { for (int i = 0; i < dtd.length; i += 3) { if (dtd[i].equals(classname)) { return createImpl((String)dtd[i]); } } throw new IllegalArgumentException("unknown " + classname); }