Move Java boilerplate to its own module