this.lifecycleEnvironment = new LifecycleEnvironment();
final DropwizardResourceConfig jerseyConfig = new DropwizardResourceConfig(metricRegistry);
jerseyConfig.getSingletons().add(new EarlyEofExceptionMapper());
this.jerseyServletContainer = new JerseyContainerHolder(new ServletContainer(jerseyConfig));
this.jerseyEnvironment = new JerseyEnvironment(jerseyServletContainer, jerseyConfig);
}