tatamibotConfigurationRepository.findTatamibotConfigurationsByDomain(domain.getName())) {
log.debug("Configuring Bot : {}", configuration);
SourceRouteBuilderBase subBuilder = null;
if (configuration.getType().equals(TatamibotConfiguration.TatamibotType.RSS)) {
subBuilder = new RssRouteBuilder();
} else if (configuration.getType().equals(TatamibotConfiguration.TatamibotType.TWITTER)) {
subBuilder = new TwitterRouteBuilder();
} else if (configuration.getType().equals(TatamibotConfiguration.TatamibotType.GIT)) {
subBuilder = new GitHubRouteBuilder();
}
if (subBuilder != null) {
subBuilder.setConfiguration(configuration);
subBuilder.setTatamiBotLogin(tatamiBotLogin);
subBuilder.setIdempotentRepository(idempotentRepository);
addRoutesToContext(subBuilder);
}
}
}
}