try {
NormalizedMessage msg = exchange.createMessage();
msg.setContent(new StringSource(
"<example>Error Case Test passed!</example>"));
exchange.setMessage(msg, "out");
ep.send(exchange, false);
} catch (Exception ex) {
throw new WorkflowException(
"FailExampleFunction: Unable to answer request.", ex);
}
}