attachscaledimage(doc, scaler, null);
}
public TMLContext dbContext(WGDatabase dbTarget) throws WGAPIException {
WebTMLLanguageChooser chooser = new WebTMLLanguageChooser(dbTarget, this);
WGLanguage lang = chooser.selectDatabaseLanguage(dbTarget);
// We want to create a db context even when there is no matching language
// so we just create dummy content on the source context language
if (lang == null) {
lang = dbTarget.getLanguage(content().getLanguage().getName());