My version of the code from the book Deploying with JRuby