protected void createDomainXmlEvents(DomainConfig domainConfig)
throws DomainException {
try {
final PEFileLayout layout = getFileLayout(domainConfig);
final File domainXml = layout.getDomainConfigFile();
DomainXmlSAXParser parser = new DomainXmlSAXParser();
try {
parser.parse(domainXml,layout.getDtdFile());
}
catch(Exception e) {
throw new DomainException(
strMgr.getString("domainXmlNotParsed"), e);
}
String className = parser.getDomainXmlEventListenerClass();
if(className!=null) {
DomainXmlEventListener listener = (DomainXmlEventListener) Class.forName(className).newInstance();
listener.handleCreateEvent(domainConfig);
}
}