code: protected void storeValidation(Validation v, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(CommonXML.ELEMENT_VALIDATION);
  
        if (v.isValidateOnMatch() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_VALIDATE_ON_MATCH);
           writer.writeCharacters(v.getValue(CommonXML.ELEMENT_VALIDATE_ON_MATCH, v.isValidateOnMatch().toString()));
           writer.writeEndElement();
        }
  
        if (v.isBackgroundValidation() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_BACKGROUND_VALIDATION);
           writer.writeCharacters(v.getValue(CommonXML.ELEMENT_BACKGROUND_VALIDATION,
                                             v.isBackgroundValidation().toString()));
           writer.writeEndElement();
        }
  
        if (v.getBackgroundValidationMillis() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_BACKGROUND_VALIDATION_MILLIS);
           writer.writeCharacters(v.getValue(CommonXML.ELEMENT_BACKGROUND_VALIDATION_MILLIS,
                                             v.getBackgroundValidationMillis().toString()));
           writer.writeEndElement();
        }
  
        if (v.isUseFastFail() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_USE_FAST_FAIL);
           writer.writeCharacters(v.getValue(CommonXML.ELEMENT_USE_FAST_FAIL, v.isUseFastFail().toString()));
           writer.writeEndElement();
        }
  
        writer.writeEndElement();
     }
docs: Store validation
  @param v The validation
  @param writer The writer
  @exception Exception Thrown if an error occurs