[COOK-4723] Package resource enhancements

I very much like your proposed code. I'll put it in and test it and will update the pull request accordingly. Would that be sufficient to merge the pull request?