try {
templator.appendHeader(pw);
for (PatternParser p : parsers) {
PatternParserWithPathFormat pp;
UrlPathParser pathParser;
if (p instanceof PatternParserWithPathFormat) {
pathParser = ((PatternParserWithPathFormat) p)
.getUrlPathParser();
pp = (PatternParserWithPathFormat) p;