in src/main/java/org/apache/sling/hc/support/impl/ScriptedHealthCheck.java [242:250]
public String getFileContents(String url) {
String content;
try {
content = Files.readAllLines(Paths.get(new URI(url))).stream().collect(Collectors.joining("\n"));
return content;
}catch(IOException | URISyntaxException e) {
throw new IllegalArgumentException("Could not read file URL "+url+": "+e, e);
}
}