Source:
<code>public ValidatorHandlerImpl getValidatorHandler(IPipeLineSession session, ValidationContext context) throws ConfigurationException { ValidatorHandlerImpl validatorHandler; try { javax.xml.validation.Schema schemaObject; if (xsdVersion == 1.0) { XMLSchemaFactory schemaFactory = new XMLSchemaFactory(); schemaObject = schemaFactory.newSchema(((XercesValidationContext) context).getGrammarPool()); } else { XMLSchema11Factory schemaFactory = new XMLSchema11Factory(); schemaObject = schemaFactory.newSchema(((XercesValidationContext) context).getGrammarPool()); } validatorHandler = (ValidatorHandlerImpl) schemaObject.newValidatorHandler(); } catch (SAXException e) { throw new ConfigurationException(logPrefix + "Cannot create schema", e); } try { validatorHandler.setFeature(VALIDATION_FEATURE_ID, true); validatorHandler.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true); validatorHandler.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, isFullSchemaChecking()); <START> validatorHandler.setContentHandler(context.getContentHandler()); <END> validatorHandler.setErrorHandler(context.getErrorHandler()); } catch (SAXNotRecognizedException e) { throw new ConfigurationException(logPrefix + "ValidatorHandler does not recognize necessary feature", e); } catch (SAXNotSupportedException e) { throw new ConfigurationException(logPrefix + "ValidatorHandler does not support necessary feature", e); } return validatorHandler; }</code><technical_language>is this necessary now, before? a bug</technical_language>

Target:
public ValidatorHandler getValidatorHandler(IPipeLineSession session, ValidationContext context) throws ConfigurationException { ValidatorHandler validatorHandler; try { javax.xml.validation.Schema schemaObject; if (xsdVersion == 1.0) { XMLSchemaFactory schemaFactory = new XMLSchemaFactory(); schemaObject = schemaFactory.newSchema(((XercesValidationContext) context).getGrammarPool()); } else { XMLSchema11Factory schemaFactory = new XMLSchema11Factory(); schemaObject = schemaFactory.newSchema(((XercesValidationContext) context).getGrammarPool()); } validatorHandler = schemaObject.newValidatorHandler(); } catch (SAXException e) { throw new ConfigurationException(logPrefix + "Cannot create schema", e); } try { validatorHandler.setFeature(VALIDATION_FEATURE_ID, true); validatorHandler.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true); validatorHandler.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, isFullSchemaChecking()); validatorHandler.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true); validatorHandler.setFeature("<LINK_0>", true); SecurityManager securityManager = new SecurityManager(); securityManager.setEntityExpansionLimit(entityExpansionLimit); validatorHandler.setProperty(SECURITY_MANAGER_PROPERTY_ID, securityManager); validatorHandler.setContentHandler(context.getContentHandler()); validatorHandler.setErrorHandler(context.getErrorHandler()); } catch (SAXNotRecognizedException e) { throw new ConfigurationException(logPrefix + "ValidatorHandler does not recognize necessary feature", e); } catch (SAXNotSupportedException e) { throw new ConfigurationException(logPrefix + "ValidatorHandler does not support necessary feature", e); } return validatorHandler; }