try {
UserService userService = new UserService(service.getClient());
User user = userService.getUser();
CommitUser author = new CommitUser();
author.setName(user.getName());
author.setEmail(user.getEmail());
author.setDate(new GregorianCalendar().getTime());
commit.setAuthor(author);
commit.setCommitter(author);
} catch (IOException e) {
throw new MojoExecutionException("Error retrieving user info: "