formatter = (WikiFormat)Class.forName(properties.get().
getProperty("wiki.format")).newInstance();
} catch (Exception e) {
log.error("Cannot instantiate wiki format, using default: ", e);
// Fall back to default
formatter = new TwikiFormat();
}
} else {
// Fall back to default
formatter = new TwikiFormat();
}
}
HashMap schemeHandlers = loadSchemeHandlers(properties);
formatter = new TwikiFormat(schemeHandlers);
return formatter;
}