[java] extract injector to prepare web conatiner deployment
[java] producing war (stop using embedded server)