code: protected void storeTimeout(Timeout t, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(CommonXML.ELEMENT_TIMEOUT);
  
        if (t.getBlockingTimeoutMillis() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_BLOCKING_TIMEOUT_MILLIS);
           writer.writeCharacters(t.getValue(CommonXML.ELEMENT_BLOCKING_TIMEOUT_MILLIS,
                                             t.getBlockingTimeoutMillis().toString()));
           writer.writeEndElement();
        }
  
        if (t.getIdleTimeoutMinutes() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_IDLE_TIMEOUT_MINUTES);
           writer.writeCharacters(t.getValue(CommonXML.ELEMENT_IDLE_TIMEOUT_MINUTES,
                                             t.getIdleTimeoutMinutes().toString()));
           writer.writeEndElement();
        }
  
        if (t.getAllocationRetry() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_ALLOCATION_RETRY);
           writer.writeCharacters(t.getValue(CommonXML.ELEMENT_ALLOCATION_RETRY,
                                             t.getAllocationRetry().toString()));
           writer.writeEndElement();
        }
  
        if (t.getAllocationRetryWaitMillis() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS);
           writer.writeCharacters(t.getValue(CommonXML.ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS,
                                             t.getAllocationRetryWaitMillis().toString()));
           writer.writeEndElement();
        }
  
        if (t.getXaResourceTimeout() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_XA_RESOURCE_TIMEOUT);
           writer.writeCharacters(t.getValue(CommonXML.ELEMENT_XA_RESOURCE_TIMEOUT,
                                             t.getXaResourceTimeout().toString()));
           writer.writeEndElement();
        }
  
        writer.writeEndElement();
     }
docs: Store timeout
  @param t The timeout
  @param writer The writer
  @exception Exception Thrown if an error occurs