private String buildEventData() throws JAXBException {
  if (_eventParameters != null) {
    try {
      JAXBContext jaxbContext=JAXBContext.newInstance(EventParameters.class);
      Marshaller marshaller=jaxbContext.createMarshaller();
      marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true);
      Writer outWriter=new StringWriter();
      StreamResult result=new StreamResult(outWriter);
      marshaller.marshal(_eventParameters,result);
      return outWriter.toString();
    }
 catch (    JAXBException e) {
      _log.error("Failed to generate user message file. " + e.getMessage());
      throw e;
    }
  }
 else {
    return null;
  }
}

private String buildEventData ( ) throws JAXBException { if ( _eventParameters != null ) { try { JAXBContext jaxbContext = JAXBContext . newInstance ( EventParameters . class ) ; Marshaller marshaller = jaxbContext . createMarshaller ( ) ; marshaller . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , true ) ; Writer outWriter = new StringWriter ( ) ; StreamResult result = new StreamResult ( outWriter ) ; marshaller . marshal ( _eventParameters , result ) ; return outWriter . toString ( ) ; } catch ( JAXBException e ) { _log . error ( "Failed to generate user message file. " + e . getMessage ( ) ) ; throw e ; } } else { return null ; } }
build events data as marshalled string of xml data .
