private void parse() throws SAXException {
  XStream xstream=(XStream)properties.get(CONFIGURED_XSTREAM_PROPERTY);
  if (xstream == null) {
    xstream=new XStream();
  }
  final List<?> source=(List<?>)properties.get(SOURCE_OBJECT_LIST_PROPERTY);
  if (source == null || source.isEmpty()) {
    throw new SAXException("Missing or empty source object list. Setting property \"" + SOURCE_OBJECT_LIST_PROPERTY + "\" is mandatory");
  }
  try {
    startDocument(true);
    for (    final Object name : source) {
      xstream.marshal(name,this);
    }
    endDocument(true);
  }
 catch (  final StreamException e) {
    if (e.getCause() instanceof SAXException) {
      throw (SAXException)e.getCause();
    }
 else {
      throw new SAXException(e);
    }
  }
}

private void parse ( ) throws SAXException { XStream xstream = ( XStream ) properties . get ( CONFIGURED_XSTREAM_PROPERTY ) ; if ( xstream == null ) { xstream = new XStream ( ) ; } final List < ? > source = ( List < ? > ) properties . get ( SOURCE_OBJECT_LIST_PROPERTY ) ; if ( source == null || source . isEmpty ( ) ) { throw new SAXException ( "Missing or empty source object list. Setting property \"" + SOURCE_OBJECT_LIST_PROPERTY + "\" is mandatory" ) ; } try { startDocument ( true ) ; for ( final Object name : source ) { xstream . marshal ( name , this ) ; } endDocument ( true ) ; } catch ( final StreamException e ) { if ( e . getCause ( ) instanceof SAXException ) { throw ( SAXException ) e . getCause ( ) ; } else { throw new SAXException ( e ) ; } } }
serializes the java objects of the configured list into a flow of sax events .
