@Override public void process(Exchange exchange) throws Exception { Message in = exchange.getIn(); RepositoryCommit commit = (RepositoryCommit) in.getBody(); User author = commit.getAuthor(); log.debug( "Got commit with author: " + author.getLogin() + ": " + author.getHtmlUrl() + " SHA " + commit.getSha()); }