* @return the resulting {@code Source} instance.
*/
protected Source marshallResponse(RequestSecurityTokenResponse response) {
// add the single response to a RequestSecurityTokenResponse collection, as per the specification.
RequestSecurityTokenResponseCollection responseCollection = new RequestSecurityTokenResponseCollection();
responseCollection.addRequestSecurityTokenResponse(response);
try {
DOMResult result = new DOMResult(DocumentUtil.createDocument());
WSTrustResponseWriter writer = new WSTrustResponseWriter(result);
writer.write(responseCollection);