private static Map<InstructionHandle, Call> buildCallMap(CFG cfg, ConstantPoolGen cpg) {
Map<InstructionHandle, Call> callMap = new HashMap<InstructionHandle, Call>();
for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) {
InstructionHandle handle = i.next().getHandle();
Instruction ins = handle.getInstruction();
if (ins instanceof InvokeInstruction) {
InvokeInstruction inv = (InvokeInstruction) ins;
Call call = new Call(inv.getClassName(cpg), inv.getName(cpg), inv.getSignature(cpg));
callMap.put(handle, call);