TODO: split the resource into two different classes, then the REST hopefully will work.