targetDir += "/";
}
ObjectToXml trans = new ObjectToXml();
DefaultMuleException exception = new DefaultMuleException(MessageFactory.createStaticMessage("Some default exception"));
FatalException fatal = new FatalException(MessageFactory.createStaticMessage("Some fatal exception"),
new IOException("Some IO exception"));
BusinessException business = new BusinessException("Some business exception");
ExceptionBean bean = new ExceptionBean(exception);
String xml = (String)trans.transform(bean);