// lets check we're in an active profile and not in a test case that has no profile
if (fabricService != null) {
Container container = fabricService.getCurrentContainer();
if (container != null) {
final DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabricService, downloadExecutor);
return new DownloadStrategy() {
@Override
public File downloadContent(URL sourceUrl, File installDir) throws IOException {
DownloadFuture future = downloadManager.download(sourceUrl.toString());
File file = AgentUtils.waitForFileDownload(future);
if (file != null && file.exists() && file.isFile()) {