code: protected void storeRecovery(Recovery r, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(CommonXML.ELEMENT_RECOVERY);
  
        if (r.isNoRecovery() != null)
           writer.writeAttribute(CommonXML.ATTRIBUTE_NO_RECOVERY,
                                 r.getValue(CommonXML.ATTRIBUTE_NO_RECOVERY, r.isNoRecovery().toString()));
  
        if (r.getCredential() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_RECOVERY_CREDENTIAL);
  
           writer.writeStartElement(CommonXML.ELEMENT_SECURITY_DOMAIN);
           writer.writeCharacters(r.getCredential().getValue(CommonXML.ELEMENT_SECURITY_DOMAIN,
                                                                r.getCredential().getSecurityDomain()));
           writer.writeEndElement();
  
           writer.writeEndElement();
        }
  
        if (r.getPlugin() != null)
        {
           storeExtension(r.getPlugin(), writer, CommonXML.ELEMENT_RECOVERY_PLUGIN);
        }
  
        writer.writeEndElement();
     }
docs: Store recovery
  @param r The recovery
  @param writer The writer
  @exception Exception Thrown if an error occurs