String jarMd5 = computeMD5(jarPath);
if(jarMd5 == null) {
return null;
}
LOGGER.debug("jarMd5:"+jarMd5); //$NON-NLS-1$
ModuleInfo info = _wojCache.getModuleInfo(jarMd5);
if(info != null && info.isKnown()) {
LOGGER.debug("found in cache:"+info); //$NON-NLS-1$
return info;
}
LOGGER.debug("ask woj server"); //$NON-NLS-1$
info = WojServicesAccess.INSTANCE.getModuleInfo(jarMd5);
LOGGER.debug("woj server respond :"+info); //$NON-NLS-1$
if(info != null) {
_wojCache.putModuleInfo(jarMd5, info);
}
if(info == null || !info.isKnown()) {
LOGGER.debug("woj server do not kown this jar looking for local association."); //$NON-NLS-1$
info = _localAsso.getLocalAssociation(jarMd5);
LOGGER.debug("local asso:"+info); //$NON-NLS-1$
}
return info;