protected Answer registerTemplateOnSwift(DownloadCommand cmd) { SwiftTO swiftTO = (SwiftTO)cmd.getDataStore(); String path = cmd.getInstallPath(); DataStoreTO cacheStore = cmd.getCacheStore(); if (cacheStore == null || !(cacheStore instanceof NfsTO)) {
String installPathPrefix = cmd.getInstallPath(); jobId = downloadPublicTemplate(cmd.getId(), cmd.getUrl(), cmd.getName(), cmd.getFormat(), cmd.isHvm(), cmd.getAccountId(), cmd.getDescription(), cmd.getChecksum(), installPathPrefix, cmd.getInstallPath(), user, password, maxDownloadSizeInBytes, cmd.getProxy(), resourceType);