private ApplicationHandler applicationHandler; public ServerSideConnector(ApplicationHandler applicationHandler) { this.applicationHandler = applicationHandler; } @Override public ClientResponse apply(ClientRequest request) throws ProcessingException { ContainerRequest containerRequest = buildContainerRequestFromClientRequest(request); ... = applicationHandler.apply(containerRequest); ClientResponse clientResponse = ... return clientResponse; }