@Override
protected OMElement serializeSpecificMediator(Mediator m) {
if (!(m instanceof InvokeMediator)) {
handleException("Unsupported mediator passed in for serialization : " + m.getType());
}
InvokeMediator mediator = (InvokeMediator) m;
OMElement invokeElem = fac.createOMElement(INVOKE_N, synNS);
if (mediator.getTargetTemplate() != null) {
invokeElem.addAttribute(fac.createOMAttribute(
"target", nullNS, mediator.getTargetTemplate()));
serializeParams(invokeElem, mediator);
saveTracingState(invokeElem, mediator);
}