else {
// resource exists => parse it
// Store all pc classes specified in this resource in this
// JDOModel instance => pass this to the handler
JDOHandler handler = new JDOHandlerImpl(this);
JDOParser parser = new JDOParser(handler);
try {
if (debug)
xmlLogger.debug(" XML " + resource + //NOI18N
" found, start parsing ..."); //NOI18N
parser.parse(new InputSource(new InputStreamReader(stream)));
}
catch (SAXException ex) {
throw new ModelFatalException(
msg.msg("EXC_XMLError", resource), ex); //NOI18N
}