lsrefactor java backend to use more dependency injection

**do not review yet**