Convert the init method to instance method, from class method.
Add support to deploy using tomcat.