if (!(mediator instanceof OAuthMediator)) {
handleException("Unsupported mediator passed in for serialization : "
+ mediator.getType());
}
OAuthMediator oauth = null;
OMElement oauthElem = null;
oauth = (OAuthMediator) mediator;
oauthElem = fac.createOMElement("oauthService", synNS);
saveTracingState(oauthElem, oauth);
oauthElem.addAttribute(fac.createOMAttribute("remoteServiceUrl", nullNS, oauth
.getRemoteServiceUrl()));
oauth = (OAuthMediator) mediator;
return oauthElem;
}