Added failsafe setContent and getContent method implementations