backport for PR 3171 missing readOnlyClass methods
Merge pull request #3261 from bilalyasar/3-xconfig

[backport] for PR 3171 missing readOnlyClass methods