// Merge the exports
Map<PackageRef,List<PackageRef>> uses = builder.getUses();
for (Entry<String,Attrs> entry : exportsMap.entrySet()) {
String pkgName = Processor.removeDuplicateMarker(entry.getKey());
ExportPackage export = new ExportPackage(pkgName, entry.getValue(), uses.get(pkgName));
List<ExportPackage> exportList = exports.get(export.getName());
if (exportList == null) {
exportList = new LinkedList<ExportPackage>();
exports.put(export.getName(), exportList);
}
exportList.add(export);
}
// Merge the used-by package mappings