code: protected void storeDriver(Driver drv, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(XML.ELEMENT_DRIVER);
  
        if (drv.getName() != null)
           writer.writeAttribute(XML.ATTRIBUTE_NAME,
                                 drv.getValue(XML.ATTRIBUTE_NAME, drv.getName()));
  
        if (drv.getModule() != null)
           writer.writeAttribute(XML.ATTRIBUTE_MODULE,
                                 drv.getValue(XML.ATTRIBUTE_MODULE, drv.getModule()));
  
        if (drv.getMajorVersion() != null)
           writer.writeAttribute(XML.ATTRIBUTE_MAJOR_VERSION,
                                 drv.getValue(XML.ATTRIBUTE_MAJOR_VERSION, drv.getMajorVersion().toString()));
  
        if (drv.getMinorVersion() != null)
           writer.writeAttribute(XML.ATTRIBUTE_MINOR_VERSION,
                                 drv.getValue(XML.ATTRIBUTE_MINOR_VERSION, drv.getMinorVersion().toString()));
  
        if (drv.getDriverClass() != null)
        {
           writer.writeStartElement(XML.ELEMENT_DRIVER_CLASS);
           writer.writeCharacters(drv.getValue(XML.ELEMENT_DRIVER_CLASS, drv.getDriverClass()));
           writer.writeEndElement();
        }
  
        if (drv.getDataSourceClass() != null)
        {
           writer.writeStartElement(XML.ELEMENT_DATASOURCE_CLASS);
           writer.writeCharacters(drv.getValue(XML.ELEMENT_DATASOURCE_CLASS, drv.getDataSourceClass()));
           writer.writeEndElement();
        }
  
        if (drv.getXaDataSourceClass() != null)
        {
           writer.writeStartElement(XML.ELEMENT_XA_DATASOURCE_CLASS);
           writer.writeCharacters(drv.getValue(XML.ELEMENT_XA_DATASOURCE_CLASS, drv.getXaDataSourceClass()));
           writer.writeEndElement();
        }
  
        writer.writeEndElement();
     }
docs: Store a driver
  @param drv The driver
  @param writer The writer
  @exception Exception Thrown if an error occurs