void (StringBuilder buffer) { URL baseUrl = getBaseUrl(); if (baseUrl != null) { buffer.append("<html><head><base href=\"").append(baseUrl).append("\"></head><body>"); // used to resolve URLs of local images } }