feat(doc): can use setLogicalName before add (closes #5014, #5015)