Instead of using data.content directly, use get and setContent as needed.