if (includedFiles.contains(fileName)) {
throwIncludedFileCycle(fileName);
}
includedFiles.add(fileName);
final Generator generator = this.getGenerator();
final GeneratorContext context = generator.getGeneratorContext();
context.debug(fileName);
final InputStream inputStream = generator.getResource(fileName);
final Document document = this.getDocumentBuilder().parse(inputStream);
this.setDocument(document);
// process the local tags within this document
final PlaceHolderResolver placeHolderResolver = this.loadPlaceholderFiles(document);