}
Container container = WebContextFactory.get().getContainer();
boolean preferDataUrlSchema = ContainerUtil.getBooleanSetting(container, "preferDataUrlSchema", false);
DownloadManager downloadManager;
if (preferDataUrlSchema && isDataUrlAvailable())
{
downloadManager = new DataUrlDownloadManager();
}
else
{
downloadManager = container.getBean(DownloadManager.class);
}
String url = downloadManager.addFileTransfer(transfer);
return new NonNestedOutboundVariable(url);
}
catch (IOException ex)
{
throw new ConversionException(getClass(), ex);