public static void CreateObject(String name, Object args[], long result) {
public void CreateObject(String name, Object args[], long result) {
  public static void CreateObject(String name, Object args[], long result) {    try {      Vector matches = new Vector();      Constructor cons[] = Class.forName(name).getConstructors();      for (int i=0; i<cons.length; i++) {        if (cons[i].getParameterTypes().length == args.length) {          matches.addElement(cons[i]);        }      }      Constructor selected = (Constructor)select(matches, args);      if (selected == null) {        if (args.length > 0) {          throw new InstantiationException("No matching constructor found");        } else {          // for classes which have no visible constructor, return the class          // useful for classes like java.lang.System and java.util.Calendar.          setResult(result, Class.forName(name));          return;        }      }      Object coercedArgs[] = coerce(selected.getParameterTypes(), args);      setResult(result, selected.newInstance(coercedArgs));    } catch (Exception e) {      setException(result, e);    }  }