// Validate the port values.
DomainPortValidator portValidator = new DomainPortValidator(_domainConfig, _defaultPortValues);
portValidator.validateAndSetPorts();
// Validate other domain config parameters.
new PEDomainConfigValidator().validate(_domainConfig);
} catch (Exception ex) {
throw new DomainException(ex);
}
}