Source:
<code>public void run(ConnectorConfiguration configuration, Environment environment) { final Injector injector = createInjector(environment, new ConnectorModule(configuration, environment)); injector.getInstance(PersistenceServiceInitialiser.class); initialiseMetrics(configuration, environment); environment.jersey().register(new ValidationExceptionMapper()); <START> environment.jersey().register(injector.getInstance(GatewayAccountResource.class)); <END> environment.jersey().register(injector.getInstance(ChargeEventsResource.class)); environment.jersey().register(injector.getInstance(SecurityTokensResource.class)); environment.jersey().register(injector.getInstance(ChargesApiResource.class)); environment.jersey().register(injector.getInstance(ChargesFrontendResource.class)); environment.jersey().register(injector.getInstance(ChargeRefundsResource.class)); environment.jersey().register(injector.getInstance(TransactionsSummaryResource.class)); environment.jersey().register(injector.getInstance(NotificationResource.class)); environment.jersey().register(injector.getInstance(CardResource.class)); environment.jersey().register(injector.getInstance(CardTypesResource.class)); environment.jersey().register(injector.getInstance(HealthCheckResource.class)); environment.jersey().register(injector.getInstance(EmailNotificationResource.class)); environment.jersey().register(injector.getInstance(SchemeRewriteFilter.class)); environment.jersey().register(injector.getInstance(PerformanceReportResource.class)); setupSchedulers(configuration, environment, injector); setupSmartpayBasicAuth(environment, injector.getInstance(SmartpayAccountSpecificAuthenticator.class)); environment.servlets().addFilter("LoggingFilter", injector.getInstance(LoggingFilter.class)) .addMappingForUrlPatterns(of(REQUEST), true, "/v1/*"); environment.healthChecks().register("ping", new Ping()); environment.healthChecks().register("database", injector.getInstance(DatabaseHealthCheck.class)); environment.healthChecks().register("cardExecutorService", injector.getInstance(CardExecutorServiceHealthCheck.class)); setGlobalProxies(configuration); if (configuration.isXrayEnabled()) Xray.init(environment, "pay-connector", Optional.empty(),"/v1/*"); }</code><technical_language>Is this of exception mappers in connector? inconsistency troubles a bit if do generally want move exception mappers (like do in Direct Debit connector) I guess start</technical_language>

Target:
public void run(ConnectorConfiguration configuration, Environment environment) { final Injector injector = createInjector(environment, new ConnectorModule(configuration, environment)); injector.getInstance(PersistenceServiceInitialiser.class); initialiseMetrics(configuration, environment); environment.jersey().register(new ValidationExceptionMapper()); environment.jersey().register(injector.getInstance(GatewayAccountResource.class)); environment.jersey().register(injector.getInstance(ChargeEventsResource.class)); environment.jersey().register(injector.getInstance(SecurityTokensResource.class)); environment.jersey().register(injector.getInstance(ChargesApiResource.class)); environment.jersey().register(injector.getInstance(ChargesFrontendResource.class)); environment.jersey().register(injector.getInstance(ChargeRefundsResource.class)); environment.jersey().register(injector.getInstance(TransactionsSummaryResource.class)); environment.jersey().register(injector.getInstance(NotificationResource.class)); environment.jersey().register(injector.getInstance(CardResource.class)); environment.jersey().register(injector.getInstance(CardTypesResource.class)); environment.jersey().register(injector.getInstance(HealthCheckResource.class)); environment.jersey().register(injector.getInstance(EmailNotificationResource.class)); environment.jersey().register(injector.getInstance(SchemeRewriteFilter.class)); environment.jersey().register(injector.getInstance(PerformanceReportResource.class)); environment.jersey().register(injector.getInstance(SearchRefundsResource.class)); setupSchedulers(configuration, environment, injector); setupSmartpayBasicAuth(environment, injector.getInstance(SmartpayAccountSpecificAuthenticator.class)); environment.servlets().addFilter("LoggingFilter", injector.getInstance(LoggingFilter.class)) .addMappingForUrlPatterns(of(REQUEST), true, "/v1/*"); environment.healthChecks().register("ping", new Ping()); environment.healthChecks().register("database", injector.getInstance(DatabaseHealthCheck.class)); environment.healthChecks().register("cardExecutorService", injector.getInstance(CardExecutorServiceHealthCheck.class)); setGlobalProxies(configuration); if (configuration.isXrayEnabled()) Xray.init(environment, "pay-connector", Optional.empty(),"/v1/*"); }