Refactoring DataNameAndContentOrreturnCode