Wrap resource body in a container.