SaxParserHandler result = null;
/*
*If the property com.sun.aas.installRoot is defined, use the
*original implementation (SaxParserHandler) which fetches DTDs and
*schemas from the installation directory tree. Otherwise, assume that
*the app client container is running under Java Web Start. In that
*case, there is no product installation directory (at least none can
*be assumed). The DTDs and schemas will be retrieved from the
*JWS-specific jar file instead (SaxParserHandlerBundled).
*/
if (System.getProperty("com.sun.aas.installRoot") == null) {
result = new SaxParserHandlerBundled();
} else {
result = new SaxParserHandler();
}
return result;