object_id = object_id == null ? null : URLDecoder.decode(object_id, settings.getDefaultCharset());
// TODO Changet object_id to an Object and figure out the correct datatype from the dao. dont' think this is necessary
Class pc = options.getClassMapping(model);
if (pc == null) {
throw new Http404("Class not found");
}
ModelAdmin ma = options.getModelAdmin(pc);
if (object_id != null && !ma.isEditor(request.getUser())) {
throw new Http404("Class not found, or not authorized");
} else if (!ma.isAuthor(request.getUser())) {
throw new Http404("Class not found, or not authorized");
}
Manager manager = findManager(pc, ma);
Object object = null;