}
private void loadSquidPackages(Squid squid, SensorContext context) {
Collection<SourceCode> packages = squid.search(new QueryByType(SourcePackage.class));
for (SourceCode squidPackage : packages) {
JavaPackage sonarPackage = SquidUtils.convertJavaPackageKeyFromSquidFormat(squidPackage.getKey());
<BUG>context.saveResource(sonarPackage);
</BUG>
put(squidPackage, context.getResource(sonarPackage)); // resource is reloaded to get the id
}
}

}
private void loadSquidProject(Squid squid, Project project) {
put(squid.getProject(), project);
}
private void loadSquidPackages(Squid squid, SensorContext context) {
Collection<SourceCode> packages = squid.search(new QueryByType(SourcePackage.class));
for (SourceCode squidPackage : packages) {
JavaPackage sonarPackage = SquidUtils.convertJavaPackageKeyFromSquidFormat(squidPackage.getKey());
context.index(sonarPackage);
put(squidPackage, context.getResource(sonarPackage)); // resource is reloaded to get the id
}
}
