boolean validation = true;
if(hints != null && hints.containsKey(DocumentFactory.VALIDATION_HINT)){
Boolean t = (Boolean)hints.get(DocumentFactory.VALIDATION_HINT);
if(t!=null)
validation = t.booleanValue();
}
if (validation && ((value == null) || (value.length != 4))) {
throw new SAXException(
"The WFS Capabilites document has the wrong number of children");