public void simulateMethod(SootMethod method,ReferenceVariable thisVar,ReferenceVariable returnVar,ReferenceVariable params[]){
  String subSignature=method.getSubSignature();
  if (subSignature.equals("java.lang.ClassLoader latestUserDefinedLoader()")) {
    java_io_ObjectInputStream_latestUserDefinedLoader(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Object allocateNewObject(java.lang.Class,java.lang.Class)")) {
    java_io_ObjectInputStream_allocateNewObject(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Object allocateNewArray(java.lang.Class,int)")) {
    java_io_ObjectInputStream_allocateNewArray(method,thisVar,returnVar,params);
    return;
  }
 else {
    defaultMethod(method,thisVar,returnVar,params);
    return;
  }
}

public void simulateMethod ( SootMethod method , ReferenceVariable thisVar , ReferenceVariable returnVar , ReferenceVariable params [ ] ) { String subSignature = method . getSubSignature ( ) ; if ( subSignature . equals ( "java.lang.ClassLoader latestUserDefinedLoader()" ) ) { java_io_ObjectInputStream_latestUserDefinedLoader ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Object allocateNewObject(java.lang.Class,java.lang.Class)" ) ) { java_io_ObjectInputStream_allocateNewObject ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Object allocateNewArray(java.lang.Class,int)" ) ) { java_io_ObjectInputStream_allocateNewArray ( method , thisVar , returnVar , params ) ; return ; } else { defaultMethod ( method , thisVar , returnVar , params ) ; return ; } }
implements the abstract method simulatemethod . it distributes the request to the corresponding methods by signatures .
