This is code that accompanies the tutorial that can be located at http://geotrellis.github.com/tutorials/webservice.html