in src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java [297:317]
private boolean findClassLoaderResource(final String path) throws IOException {
Session session = null;
boolean res = false;
try {
session = this.writer.createSession();
if ( session.itemExists(path) ) {
logger.debug("Found resource at {}", path);
res = true;
} else {
logger.debug("No classpath entry contains {}", path);
}
} catch (final RepositoryException re) {
logger.debug("Error while trying to get node at " + path, re);
} finally {
if ( session != null ) {
session.logout();
}
}
return res;
}