in src/main/java/org/apache/sling/fsprovider/internal/parser/ContentFileCache.java [63:86]
public ContentElement get(String path, File file, ContentType contentType) {
ContentElement content = null;
if (contentCache != null) {
content = contentCache.get(path);
}
if (content == null) {
if (contentType != null) {
content = ContentFileParserUtil.parse(file, contentType);
} else {
content = ContentFileParserUtil.parse(file);
}
if (content == null) {
content = NULL_ELEMENT;
}
if (contentCache != null) {
contentCache.put(path, content);
}
}
if (content == NULL_ELEMENT) {
return null;
} else {
return content;
}
}