found = file.exists();
}
if (found) {
return new FileInputStream(file);
}
<BUG>InputStream stream = getClass().getResourceAsStream(rulesetPath);
</BUG>
if (stream == null) {
throw new SonarException("The PMD ruleset can not be found: " + rulesetPath);
}

found = file.exists();
}
if (found) {
return new FileInputStream(file);
}
InputStream stream = PmdExecutor.class.getResourceAsStream(rulesetPath);
if (stream == null) {
throw new SonarException("The PMD ruleset can not be found: " + rulesetPath);
}
