LibraryCacheProfileRequest request = new LibraryCacheProfileRequest();
request.setRequiredLibraries(requiredLibraries);
// Send the request
LibraryCacheProfileResponse response = null;
response = getTaskManagerProxy().getLibraryCacheProfile(request);
// Check response and transfer libraries if necessary
for (int k = 0; k < requiredLibraries.length; k++) {
if (!response.isCached(k)) {
LibraryCacheUpdate update = new LibraryCacheUpdate(requiredLibraries[k]);
getTaskManagerProxy().updateLibraryCache(update);
}
}
}