code: protected void storeSecurity(Security s, XMLStreamWriter writer) throws Exception
     {
        writer.writeStartElement(CommonXML.ELEMENT_SECURITY);
  
        if (s.getSecurityDomain() != null)
        {
           writer.writeStartElement(CommonXML.ELEMENT_SECURITY_DOMAIN);
           writer.writeCharacters(s.getValue(CommonXML.ELEMENT_SECURITY_DOMAIN, s.getSecurityDomain()));
           writer.writeEndElement();
        }
  
        writer.writeEndElement();
     }
docs: Store security
  @param s The security
  @param writer The writer
  @exception Exception Thrown if an error occurs