protected Criteria getCriteria() {
if (xpathMode) {
throw new WebDriverException("Bug. Criteria do not apply for xpath mode.");
}
ServerSideL10NDecorator decorator = new ServerSideL10NDecorator(getAUT());
JSONObject json;
try {
json = getCriteria(getRequest().getPayload());
} catch (JSONException e) {
throw new WebDriverException(e);