code: public void store(Activations metadata, XMLStreamWriter writer) throws Exception
     {
        if (metadata != null && writer != null)
        {
           writer.writeStartElement(XML.ELEMENT_RESOURCE_ADAPTERS);
           for (Activation a : metadata.getActivations())
           {
              writer.writeStartElement(XML.ELEMENT_RESOURCE_ADAPTER);
  
              if (a.getId() != null)
                 writer.writeAttribute(XML.ATTRIBUTE_ID, a.getValue(XML.ATTRIBUTE_ID, a.getId()));
  
              writer.writeStartElement(XML.ELEMENT_ARCHIVE);
              writer.writeCharacters(a.getValue(XML.ELEMENT_ARCHIVE, a.getArchive()));
              writer.writeEndElement();
  
              storeCommon(a, writer);
  
              writer.writeEndElement();
           }
           writer.writeEndElement();
        }
     }
docs: Store a -ra.xml file
  @param metadata The resource adapter definitions
  @param writer The writer
  @exception Exception Thrown if an error occurs