return new VelocityModelFactory(downloadContext.getServletPathTemplate(), downloadContext.getPdfLinkText(), downloadContext.getHelpLink(),
downloadContext.getHelpLinkText(), downloadContext.getReaderDownloadLink(), downloadContext.getReaderDownloadLinkText());
}
private AltinnFacade createAltinnFacade(CorrespondenceSettings correspondenceSettings, AltinnAuthorizationDesicionPointExternalSettings authorizationSettings) {
CorrespondenceClient correspondenceClient = new CorrespondenceClient(correspondenceSettings);
AltinnAuthorization altinnAuthorization = new AltinnAuthorization(authorizationSettings);
return new AltinnFacade(templateEngine, correspondenceClient, altinnAuthorization, velocityModelFactory);
}