private WebApplicationService createService(final WSFederationRequest fedRequest) {
        val targetService = getConfigContext().getWebApplicationServiceFactory().createService(fedRequest.wreply());
        targetService.getAttributes().put(WSFederationConstants.WREPLY, CollectionUtils.wrapList(fedRequest.wreply()));
        targetService.getAttributes().put(WSFederationConstants.WTREALM, CollectionUtils.wrapList(fedRequest.wtrealm()));
        targetService.getAttributes().put(WSFederationConstants.WCTX, CollectionUtils.wrapList(fedRequest.wctx()));
        return targetService;
    }
Handle federation request.

@param response the response
@param request  the request
@throws Exception the exception
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/WSFederationValidateRequestController.java