public AbstractGitHubConsumer(GitHubEndpoint endpoint, Processor processor) throws Exception {
super(endpoint, processor);
this.endpoint = endpoint;
Registry registry = endpoint.getCamelContext().getRegistry();
Object service = registry.lookupByName("githubRepositoryService");
if (service != null) {
LOG.debug("Using RepositoryService found in registry " + service.getClass().getCanonicalName());
repositoryService = (RepositoryService) service;
} else {
repositoryService = new RepositoryService();