ERXRestFormat format = format();
IERXRestParser parser = format.parser();
if (parser == null) {
throw new IllegalStateException("There is no parser for the format '" + format.name() + "'.");
}
_requestNode = parser.parseRestRequest(new ERXWORestRequest(request()), formatDelegateForFormat(format), restContext());
}
catch (Throwable t) {
throw new RuntimeException("Failed to parse a " + format() + " request.", t);
}
}