public ReplaceIns(SootMethod method,
			Map<Type, Set<Unit>> map,
			Map<Local, Set<Unit>> saveToBuf) {
		// TODO Auto-generated method stub
	
		m= method;
		b = m.getActiveBody();
		c = m.getDeclaringClass();
		getUtilClasses();
		Unit unit = getAppCntxtInsPt();
		getBufferObj(unit);
		
	//	addAppContext(unit);
		Set<SootClass> set = new HashSet<SootClass>();
		
		if(map != null){
			for(Map.Entry<Type, Set<Unit>> e: map.entrySet()){
				if(!NewTest.newTypeSet.contains(e.getKey()))
					continue;
				String s = e.getKey().toString();
				String cls_name = s+"_cls";//s.substring(s.indexOf(".")+1)+"_cls";
				Local cls = Jimple.v().newLocal(cls_name, RefType.v(Scene.v().getSootClass("java.lang.String")));
				if(isLocalAvailable(cls)){
					cls = getAvailableLocal(cls);
				}
				else{
					b.getLocals().add(cls);
					b.getUnits().insertAfter(Jimple.v().newAssignStmt(cls, StringConstant.v(e.getKey().toString())), last_stmt);//last_appCnxtStmt);
				}
				
				for(Unit u: e.getValue())
					replaceAllocStmt(u, cls);
			}
		
		}	
		
		if(saveToBuf !=null){
			for(Map.Entry<Local, Set<Unit>> e: saveToBuf.entrySet()){
				Local l = e.getKey();
				String type = l.getType().toString();
				String cls_name = type+"_cls";//type.substring(type.indexOf(".")+1)+"_cls";
				
				
				Local cls = Jimple.v().newLocal(cls_name, RefType.v(Scene.v().getSootClass("java.lang.String")));
				
				if(isLocalAvailable(cls)){
					cls = getAvailableLocal(cls);
				}
				else{
					b.getLocals().add(cls);
			
				
					b.getUnits().insertAfter(Jimple.v().newAssignStmt(cls, StringConstant.v(l.getType().toString())), last_stmt);//last_appCnxtStmt);
				}
			
				for(Unit u: e.getValue()){
					insSavePoint(l, u, cls);
				}
			}
		}
		
	}