CreateStreamRuleResponse response = null;
try {
CreateStreamRuleRequest csrr = form.get();
response = streamRuleService.update(streamId, streamRuleId, csrr);
StreamRule streamRule = streamRuleService.get(streamId, response.streamrule_id);
return created(views.html.partials.streamrules.list_item.render(streamRule));
} catch (APIException e) {
String message = "Could not create stream rule. We expected HTTP 200, but got a HTTP " + e.getHttpCode() + ".";
return status(504, message);
} catch (IOException e) {