public boolean isUpToDate(final URL url, final Collection<InputResource> inputs, final Map<Object, Object> context) throws MalformedURLException { return isUpToDate(InputResourcesHelper.getTimestamp(url), inputs, context); }
protected long getTimestamp(final InputResource resource, final Map<Object, Object> context) throws MalformedURLException { long timestamp = resource.getTimestamp(); if (timestamp == -1) { final URL url = findResource(resource, context); if (url != null) timestamp = InputResourcesHelper.getTimestamp(url); else timestamp = Long.MAX_VALUE; resource.setTimestamp(timestamp); } return timestamp; }