callback = UploadStatusCallback.NONE;
}
CloudResources knownRemoteResources = getKnownRemoteResources(archive);
callback.onCheckResources();
callback.onMatchedFileNames(knownRemoteResources.getFilenames());
UploadApplicationPayload payload = new UploadApplicationPayload(archive, knownRemoteResources);
callback.onProcessMatchedResources(payload.getTotalUncompressedSize());
HttpEntity<?> entity = generatePartialResourceRequest(payload, knownRemoteResources);
ResponseEntity<Map<String,Map<String,String>>> responseEntity =
getRestTemplate().exchange(getUrl("/v2/apps/{guid}/bits?async=true"), HttpMethod.PUT, entity,
new ParameterizedTypeReference<Map<String, Map<String,String>>>() {}, appId);
processAsyncJob(responseEntity, callback);