in src/main/java/org/apache/sling/fsprovider/internal/parser/ContentFileParserUtil.java [65:79]
public static ContentElement parse(File file) {
if (!file.exists()) {
return null;
}
if (StringUtils.endsWith(file.getName(), JSON_SUFFIX)) {
return parse(file, ContentType.JSON);
} else if (StringUtils.equals(file.getName(), DOT_CONTENT_XML)
|| StringUtils.endsWith(file.getName(), JCR_XML_SUFFIX)) {
return parse(file, ContentType.JCR_XML);
} else if (StringUtils.endsWith(file.getName(), XML_SUFFIX)
&& !StringUtils.endsWith(file.getName(), JCR_XML_SUFFIX)) {
return parse(file, ContentType.XML);
}
return null;
}