Refactoring XSD loading method using resolver to avoid network access