return packages.values();
}
private void registerPackageDescr(Map<String, CompositePackageDescr> packages, Resource resource, PackageDescr packageDescr) {
if (packageDescr != null) {
CompositePackageDescr compositePackageDescr = packages.get(packageDescr.getNamespace());
if (compositePackageDescr == null) {
packages.put(packageDescr.getNamespace(), new CompositePackageDescr(resource, packageDescr));
} else {
compositePackageDescr.addPackageDescr(resource, packageDescr);
}
}
}