in src/main/java/com/googlesource/gerrit/plugins/web/WebPluginScanner.java [59:66]
public Optional<PluginEntry> getEntry(String resourcePath) throws IOException {
Path resourceFile = getResourceFile(resourcePath);
if (Files.exists(resourceFile) && Files.size(resourceFile) > 0) {
return resourceOf(resourcePath);
} else {
return Optional.empty();
}
}