code: protected void storeStatement(Statement s, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(XML.ELEMENT_STATEMENT);
  
        if (s.getTrackStatements() != null)
        {
           writer.writeStartElement(XML.ELEMENT_TRACK_STATEMENTS);
           writer.writeCharacters(s.getValue(XML.ELEMENT_TRACK_STATEMENTS, s.getTrackStatements().toString()));
           writer.writeEndElement();
        }
  
        if (s.getPreparedStatementsCacheSize() != null)
        {
           writer.writeStartElement(XML.ELEMENT_PREPARED_STATEMENT_CACHE_SIZE);
           writer.writeCharacters(s.getValue(XML.ELEMENT_PREPARED_STATEMENT_CACHE_SIZE,
                                             s.getPreparedStatementsCacheSize().toString()));
           writer.writeEndElement();
        }
  
        if (s.isSharePreparedStatements() != null && Boolean.TRUE.equals(s.isSharePreparedStatements()))
        {
           writer.writeEmptyElement(XML.ELEMENT_SHARE_PREPARED_STATEMENTS);
        }
  
        writer.writeEndElement();
     }
docs: Store statement
  @param s The statement
  @param writer The writer
  @exception Exception Thrown if an error occurs