}
/** Returns whether the page can be directly included.
*/
private static boolean isDirectInclude(ClassWebResource cwr, String path) {
final String ext = Servlets.getExtension(path);
final Extendlet extlet = ext != null ? cwr.getExtendlet(ext): null;
if (extlet != null) {
try {
return extlet.getFeature(Extendlet.ALLOW_DIRECT_INCLUDE);
} catch (Throwable ex) { //backward compatibility
}
}
return true;
}