@Override
public void disconnect(HttpConsumer consumer) throws Exception {
camelServlet.disconnect(consumer);
// If the connector is not needed anymore.. then stop it.
HttpEndpoint endpoint = (HttpEndpoint)consumer.getEndpoint();
String connectorKey = endpoint.getProtocol() + ":" + endpoint.getPort();
synchronized (connectors) {
ConnectorRef connectorRef = connectors.get(connectorKey);
if (connectorRef != null) {
if (connectorRef.decrement() == 0) {