DDF-880 Use Xlogger.throwing() to simplify code a bit.
DDF-887 added in logic to prevent NPE if Metacard.METADATA attribute is null.  If it is null a SchematronValidationException will be returned now.
DDF-893  reversed logic on setting the metacard content type based on the <category> element