Issue #2972 immutable class was made as primary class for document.