ContentElement* to ContentElementPtr (shared_ptr).