if ((publicId != null) && publicId.equals(docTypeId)) {
InputStream localDtdStream = null;
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
try{
localDtdStream = ((ClassLoader)AccessController.doPrivileged(new PrivilegedGetClassLoaderForClass(getClass()))).getResourceAsStream(getDtdFileName(docTypeId));
}catch (PrivilegedActionException ex){
throw (RuntimeException) ex.getCause();
}
}else{
localDtdStream = PrivilegedAccessHelper.getClassLoaderForClass(getClass()).getResourceAsStream(getDtdFileName(docTypeId));