protected ModuleEnvelope load(Address address)
throws IOException, ForgingException
{
ModuleEnvelope envelope = _cache.get(address);
Resource resource = null;
boolean reload = false;
if (envelope != null) {
long lastmodified = envelope.getLastModified();
if ((lastmodified != -1) && address.getZone().shouldInvalidate()) {
resource = address.openResource();
if (resource.getLastModified() > lastmodified) {
reload = true;
}
}
} else {
resource = address.openResource();