protected function resourceToModel($resource, $model) { throw new ProcessingNotSupported("Can't write resources of type '" . get_class($resource) . "' to model layer"); }