}
SimulatorEntity simulator = simulators.get(port);
String path = uriInfo.getPath();
path = removeFirstAndLastSlashesFromUrl(path);
SimulatorRequest simulatorRequest = new SimulatorRequest(method, path, uriInfo.getQueryParameters(),
headers.getRequestHeaders(), body);
simulator.addRequestToQueue(simulatorRequest);
return simulator.generateResponse(simulatorRequest);