Map<Resource, Packages> resourcePkgMap,
Map<Resource, List<Wire>> wireMap, Candidates allCandidates)
{
wireMap.put(resource, (List<Wire>) Collections.EMPTY_LIST);
List<Wire> packageWires = new ArrayList<Wire>();
<BUG>Capability dynCand = allCandidates.getFirstCandidate(dynReq);

if (!rc.getWirings().containsKey(dynCand.getResource()))</BUG>
{
populateWireMap(rc, dynCand.getResource(), resourcePkgMap,

Map<Resource, Packages> resourcePkgMap,
Map<Resource, List<Wire>> wireMap, Candidates allCandidates)
{
wireMap.put(resource, (List<Wire>) Collections.EMPTY_LIST);
List<Wire> packageWires = new ArrayList<Wire>();
List<Capability> candCaps = allCandidates.getCandidates(dynReq);
Capability dynCand = candCaps.get(0);
if (!rc.getWirings().containsKey(dynCand.getResource()))
{
populateWireMap(rc, dynCand.getResource(), resourcePkgMap,
