in src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java [527:546]
public long getLastModified(final String name) {
final String path = cleanPath(name) + "/jcr:content/jcr:lastModified";
Session session = null;
try {
session = this.createSession();
if ( session.itemExists(path) ) {
final Property prop = (Property)session.getItem(path);
return prop.getLong();
}
} catch (final RepositoryException se) {
logger.error("Cannot get last modification time for " + name, se);
} finally {
if ( session != null ) {
session.logout();
}
}
// fall back to "non-existent" in case of problems
return -1;
}