System.out.println("Validation turned on");
	public Object makeObject() throws Exception {		Configuration config = pool.getConfiguration();		// get validation settings		int validation = VALIDATION_AUTO;		String option = (String) config.getProperty("indexer.validation");		if (option != null) {			if (option.equals("true") || option.equals("yes"))				validation = VALIDATION_ENABLED;			else if (option.equals("auto"))				validation = VALIDATION_AUTO;			else				validation = VALIDATION_DISABLED;		}		// create a SAX parser		SAXParserFactory saxFactory = SAXParserFactory.newInstance();		if (validation == VALIDATION_AUTO || validation == VALIDATION_ENABLED)			saxFactory.setValidating(true);		else			saxFactory.setValidating(false);		saxFactory.setNamespaceAware(true);		try {			saxFactory.setFeature("http://xml.org/sax/features/namespace-prefixes", true);			try {				saxFactory.setFeature("http://apache.org/xml/features/validation/dynamic",						validation == VALIDATION_AUTO);				saxFactory.setFeature("http://apache.org/xml/features/validation/schema",						validation == VALIDATION_AUTO								|| validation == VALIDATION_ENABLED);                System.out.println("Validation turned on");			} catch (SAXNotRecognizedException e1) {				// ignore: feature only recognized by xerces			} catch (SAXNotSupportedException e1) {				// ignore: feature only recognized by xerces			}			SAXParser sax = saxFactory.newSAXParser();			XMLReader parser = sax.getXMLReader();			return parser;		} catch (ParserConfigurationException e) {			throw new EXistException(e);		}	}