final Map<SignatureType, SortedMap<String, SignatureFileInfo>> availableSignatureFiles =
getAvailableSignatureFiles();
for (Map.Entry<SignatureType, SignatureUpdateService> entry : signatureUpdateServices.entrySet()) {
SignatureType type = entry.getKey();
SignatureUpdateService updateService = entry.getValue();
final Map<String, SignatureFileInfo> signaturesForType = availableSignatureFiles.get(type);
try {
int latestVersionForType = getLatestVersionForType(type, signaturesForType);
SignatureFileInfo latestUpdate = updateService.getLatestVersion(latestVersionForType);
if (latestUpdate != null
&& latestUpdate.getVersion() > 0
&& !signaturesForType.containsValue(latestUpdate)) {
latestSigFiles.put(type, latestUpdate);
}