Optimize check of non-default namespace attributes
Pull up supportedVersions code so it can be reused by other classes
Implement strict writer