String engineName = extractEngineName(requestUrl);
ProcessEngine engine = getAddressedEngine(engineName);
if (engine == null) {
resp.setStatus(Status.NOT_FOUND.getStatusCode());
ExceptionDto exceptionDto = new ExceptionDto();
exceptionDto.setType(InvalidRequestException.class.getSimpleName());
exceptionDto.setMessage("Process engine " + engineName + " not available");
ObjectMapper objectMapper = new ObjectMapper();
resp.setContentType(MediaType.APPLICATION_JSON);
objectMapper.writer().writeValue(resp.getWriter(), exceptionDto);
resp.getWriter().flush();