Made EncodedResource based variant public; consistently detect XML properties across all variants

Issue: SPR-9078
Avoid UnsupportedOperationEx. with active SecurityManager

Issue: SPR-9970
Merge branch 'SPR-9970' into 3.2.x

* SPR-9970:
  Avoid UnsupportedOperationEx. with active SecurityManager