else {   List in = (List) inParams.get("in"); if (in == null) { throw new Exception("expected 'in' parameter"); }  in.add(new Integer(random.nextInt(100)));  outParams.put("result", in);
else {
        public void execute(String method, Hashtable inParams, Hashtable outParams) throws Exception {            logger.info("executing method " + method);            // for TESTING            /*laser.littlejil.types.SimpleDuration v = new laser.littlejil.types.SimpleDuration();            v.setSeconds((int)(Math.random()*100));*/            if (method.equals("FindBase")) {                // set the "base"                outParams.put("base", String.valueOf(random.nextInt(100)));            }            else if (method.equals("EvaluateClient")) {                String base = (String) inParams.get("base");                Vector clientInfo = (Vector) inParams.get("clientInfo");                if (base == null || clientInfo == null ) {                    throw new Exception("expected 'base' and 'clientInfo' parameters");                }                logger.debug("EvaluateClient got base=" + base);                // add to the clientInfo list                clientInfo.add(new Integer(random.nextInt(100)));                outParams.put("clientInfo", clientInfo);            }            else if (method.equals("AdaptClients")) {                Vector clientInfo = (Vector) inParams.get("clientInfo");                if (clientInfo == null)  {                    throw new Exception("expected 'clientInfo' parameter");                }                logger.debug("AdaptClients got clientInfo vector: " + clientInfo);            }            else {  // for TESTING                // expect a List named "in", add something and put the list as "result"                List in = (List) inParams.get("in");                if (in == null) {                    throw new Exception("expected 'in' parameter");                }                in.add(new Integer(random.nextInt(100)));                outParams.put("result", in);            }        }