throw new ResourceException("Error in submitted JSON.", e, BAD_REQUEST.getStatusCode());
} catch (Exception e) {
throw new ResourceException("Error reading submitted JSON.", e, INTERNAL_SERVER_ERROR.getStatusCode());
}
return new PostAction(action, entity, conditions);
}