return new InvalidRequestException(status, cause, errorMessage);
}
protected RestException createRestException(String transition, Status status, ProcessEngineException cause) {
String errorMessage = String.format("Cannot %s case execution %s: %s", transition, caseExecutionId, cause.getMessage());
return new RestException(status, cause, errorMessage);
}