try
{
if (requestType.equals(WSTrustConstants.ISSUE_REQUEST))
{
Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal()));
Document doc = handler.postProcess((Document)((DOMSource)source).getNode(), request);
return new DOMSource(doc);
}
else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));