Shouldn't this code be inside setCreatorAndDateCreatedIfNull? Then it is from inside there that you check if it is a person object