LPS-50479

Hi Sam,

I'm going to send fix for LPS-50479 in several separate pull requests so that it's easier for Brian to merge.

This set of commits should only refactor the existing XML initializations into SecureXMLBuilderImpl so there should be no change in behavior and also no security improvements yet.

Thanks.