Code example for SAXException

0
                if (localName.equals("factory")) {
                    String className = attributes.getValue("class");
                    try { 
                        addClass(className);
                    } catch (ClassNotFoundException e) {
                        throw new SAXException("Cannot find Matcher class : " + className);
                    } 
                } 
            } 
        }); 
    } 
 
    private void addClass(String className) throws ClassNotFoundException {
        Class<?> cls = classLoader.loadClass(className);
        sugarConfiguration.addFactoryMethods(
                new QDoxFactoryReader(new ReflectiveFactoryReader(cls), qdox, className));
    } 
 
 
    public static void main(String[] args) throws Exception {