}
protected void execute(final Callback callback) throws MalformedURLException {
Map<String, String> props = mergeProperties();
final Header h = new Header(header.toURI().toURL(), props, headerSections);
logger.debug("Header {}:\n{}", h.getLocation(), h);
if (this.validHeaders == null)
this.validHeaders = new ArrayList<File>();
final List<Header> validHeaders = new ArrayList<Header>(this.validHeaders.size());
for (File validHeader : this.validHeaders) {
validHeaders.add(new Header(validHeader.toURI().toURL(), props, headerSections));
}
final DocumentFactory documentFactory = new DocumentFactory(rootDir, buildMapping(), buildHeaderDefinitions(),
encoding, keywords);