protected Endpoint getResolvedEPR(ServiceEndpoint ep) throws Exception {
// We receive an exchange for an EPR that has not been used yet.
// Register a provider endpoint and restart processing.
HttpEndpoint httpEp = new HttpEndpoint();
httpEp.setServiceUnit(new ServiceUnit(component));
httpEp.setService(ep.getServiceName());
httpEp.setEndpoint(ep.getEndpointName());
httpEp.setRole(MessageExchange.Role.PROVIDER);
URI uri = new URI(ep.getEndpointName());
Map map = URISupport.parseQuery(uri.getQuery());