/** * Public constructor. * * @param domain ServiceDomain instance. */ public TransformerRegistryLoader(ServiceDomain domain) { if (domain == null) { throw TransformMessages.MESSAGES.nullServiceDomainArgument(); } this._serviceDomain = domain; if (_serviceDomain.getTransformerRegistry() == null) { throw TransformMessages.MESSAGES.nullTransformerRegistryArgument(); } this._transformerRegistry = _serviceDomain.getTransformerRegistry(); }