public void add(String method,Object... args){
  Object[] argsCopy=new Object[args.length];
  System.arraycopy(args,0,argsCopy,0,args.length);
  methods.add(method);
  argLists.add(argsCopy);
}

public void add ( String method , Object ... args ) { Object [ ] argsCopy = new Object [ args . length ] ; System . arraycopy ( args , 0 , argsCopy , 0 , args . length ) ; methods . add ( method ) ; argLists . add ( argsCopy ) ; }
adds a method call with a variable list of arguments .
