java: generate servlet-based services