* @throws ConfigurationException if the configuration is broken
*/
protected JournalFactory getJournalFactory(
final Element cluster, final File home, final String id)
throws ConfigurationException {
return new JournalFactory() {
public Journal getJournal(NamespaceResolver resolver)
throws RepositoryException {
BeanConfig config = parseBeanConfig(cluster, JOURNAL_ELEMENT);
Journal journal = config.newInstance(Journal.class);
if (journal instanceof AbstractJournal) {