switch endpoint and servlet configuration to Guice and Jersey