minor refactor of getting objecting in restroomresource