String qName, Attributes atts) throws SAXException {   if (ELEMENT_SAXFILTER.equals( localName ) && this.config) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME); saxfilter = (SAXFilter) createInstance(atts.getValue( ATTRIBUTE_CLASS));  } else if (ELEMENT_SAXSERIALIZER.equals( localName )) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME); saxserializer = (SAXSerializer) createInstance(atts.getValue( ATTRIBUTE_CLASS));  } else if (ELEMENT_POSTPROCESSOR.equals( localName )) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME); String clazz = (atts.getValue(ATTRIBUTE_CLASS)); postprocessor = (PostProcessor) createInstance(clazz);  } else if (ELEMENT_PIPELINE.equals( localName )) { this.aggregate=false; this.pipeline = new ProcessPipeline(); this.pipeline.setName(atts.getValue(ATTRIBUTE_NAME));  } else if (ELEMENT_SERIALIZE.equals( localName )) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_FILTER.equals( localName )) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_PROPERTY.equals( localName )) {  this.properties.put(atts.getValue(ATTRIBUTE_NAME), atts.getValue(ATTRIBUTE_VALUE));  } else if (ELEMENT_POSTPROCESS.equals( localName )) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_CONFIGURATION.equals( localName )) {  this.config = true;  }else if (ELEMENT_SAXGENERATOR.equals( localName )) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME); String clazz = (atts.getValue(ATTRIBUTE_CLASS)); this.saxgenerator = (SAXGenerator) createInstance(clazz);  }else if (ELEMENT_GENERATE.equals( localName )) {   this.name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_AGGREGATE.equals( localName )) { this.aggregate=true; this.aggregator = new AggregatorGenerator(); this.pipeline.setSAXGenerator(this.aggregator); } }
String qName, Attributes atts) throws SAXException {  if (namespaceURI.equals(XMLNS_KABEJA_PROCESSING)) {  if (ELEMENT_SAXFILTER.equals(localName) && this.config) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME); saxfilter = (SAXFilter) createInstance(atts .getValue(ATTRIBUTE_CLASS));  } else if (ELEMENT_SAXSERIALIZER.equals(localName)) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME); saxserializer = (SAXSerializer) createInstance(atts .getValue(ATTRIBUTE_CLASS));  } else if (ELEMENT_POSTPROCESSOR.equals(localName)) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME); String clazz = (atts.getValue(ATTRIBUTE_CLASS)); postprocessor = (PostProcessor) createInstance(clazz);  } else if (ELEMENT_PIPELINE.equals(localName)) { this.aggregate = false; this.pipeline = new ProcessPipeline(); this.pipeline.setName(atts.getValue(ATTRIBUTE_NAME));  } else if (ELEMENT_SERIALIZE.equals(localName)) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_FILTER.equals(localName)) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_PROPERTY.equals(localName)) {  this.properties.put(atts.getValue(ATTRIBUTE_NAME), atts .getValue(ATTRIBUTE_VALUE));  } else if (ELEMENT_POSTPROCESS.equals(localName)) {  this.properties = new HashMap(); name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_CONFIGURATION.equals(localName)) {  this.config = true;  } else if (ELEMENT_SAXGENERATOR.equals(localName)) {  this.properties = new HashMap(); this.name = atts.getValue(ATTRIBUTE_NAME); String clazz = (atts.getValue(ATTRIBUTE_CLASS)); this.saxgenerator = (SAXGenerator) createInstance(clazz);  } else if (ELEMENT_GENERATE.equals(localName)) {   this.name = atts.getValue(ATTRIBUTE_NAME);  } else if (ELEMENT_AGGREGATE.equals(localName)) { this.aggregate = true; this.aggregator = new AggregatorGenerator(); this.pipeline.setSAXGenerator(this.aggregator); }  } else if (namespaceURI.equals(SAXParserBuilder.XMLNS_KABEJA_PARSER)) { System.out.println("parser="+localName); if (localName.equals(ELEMENT_PARSER)) { this.parserBuilder = new SAXParserBuilder(); this.parserBuilder.startDocument(); System.out.println("starting parser"); }  this.parserBuilder.startElement(namespaceURI, localName, qName, atts);  } }
    public void startElement(String namespaceURI, String localName,        String qName, Attributes atts) throws SAXException {           	if (ELEMENT_SAXFILTER.equals( localName ) && this.config) {        	            this.properties = new HashMap();            name = atts.getValue(ATTRIBUTE_NAME);            saxfilter = (SAXFilter) createInstance(atts.getValue(                        ATTRIBUTE_CLASS));                    } else if (ELEMENT_SAXSERIALIZER.equals( localName )) {        	        	this.properties = new HashMap();            name = atts.getValue(ATTRIBUTE_NAME);            saxserializer = (SAXSerializer) createInstance(atts.getValue(                        ATTRIBUTE_CLASS));                    } else if (ELEMENT_POSTPROCESSOR.equals( localName )) {        	            this.properties = new HashMap();            this.name = atts.getValue(ATTRIBUTE_NAME);            String clazz = (atts.getValue(ATTRIBUTE_CLASS));            postprocessor = (PostProcessor) createInstance(clazz);                    } else if (ELEMENT_PIPELINE.equals( localName )) {        	this.aggregate=false;            this.pipeline = new ProcessPipeline();            this.pipeline.setName(atts.getValue(ATTRIBUTE_NAME));                    } else if (ELEMENT_SERIALIZE.equals( localName )) {        	            this.properties = new HashMap();            this.name = atts.getValue(ATTRIBUTE_NAME);                    } else if (ELEMENT_FILTER.equals( localName )) {        	            this.properties = new HashMap();            name = atts.getValue(ATTRIBUTE_NAME);                    } else if (ELEMENT_PROPERTY.equals( localName )) {        	            this.properties.put(atts.getValue(ATTRIBUTE_NAME),                atts.getValue(ATTRIBUTE_VALUE));                    } else if (ELEMENT_POSTPROCESS.equals( localName )) {        	            this.properties = new HashMap();            name = atts.getValue(ATTRIBUTE_NAME);                    } else if (ELEMENT_CONFIGURATION.equals( localName )) {        	            this.config = true;                    }else if (ELEMENT_SAXGENERATOR.equals( localName )) {        	            this.properties = new HashMap();            this.name = atts.getValue(ATTRIBUTE_NAME);            String clazz = (atts.getValue(ATTRIBUTE_CLASS));            this.saxgenerator = (SAXGenerator) createInstance(clazz);                    }else if (ELEMENT_GENERATE.equals( localName )) {        	          //  this.properties = new HashMap();            this.name = atts.getValue(ATTRIBUTE_NAME);                    } else if (ELEMENT_AGGREGATE.equals( localName )) {        	this.aggregate=true;        	this.aggregator = new AggregatorGenerator();        	this.pipeline.setSAXGenerator(this.aggregator);        }    }