*/
private String getDesiredChecksum(CachedModule cachedModule) {
// Fetch some information about the asset: the base server URL of where
// the module definition is located, the name of the module and the
// asset path
ModuleURI assetURI = (ModuleURI)getAssetURI();
String path = assetURI.getRelativePathInModule();
ChecksumList moduleChecksums = cachedModule.getModuleChecksums();
if (moduleChecksums == null) {
logger.warning("Unable to locate checksum information for " +
assetURI.toExternalForm());
return null;
}
Checksum checksum = moduleChecksums.getChecksumMap().get(path);
if (checksum == null) {
logger.warning("Unable to locate checksum for path " + path +
" for " + assetURI.toExternalForm());
return null;
}
return checksum.getChecksum();
}