public static MethExecutorResult executeInstance(String receiver,String selector){
  try {
    Class receiverClass=Class.forName(receiver);
    Object target=receiverClass.newInstance();
    Object res=null;
    try {
      Method theMethod=getMethod(receiverClass,selector,new Class[0]);
      res=theMethod.invoke(target,new Object[0]);
      return new MethExecutorResult(res);
    }
 catch (    InvocationTargetException invTargEx) {
      Throwable targEx=invTargEx.getTargetException();
      if (targEx == null) {
        return new MethExecutorResult(res);
      }
 else {
        return new MethExecutorResult(targEx);
      }
    }
  }
 catch (  VirtualMachineError e) {
    SystemFailure.initiateFailure(e);
    throw e;
  }
catch (  Throwable t) {
    return new MethExecutorResult(t);
  }
}

public static MethExecutorResult executeInstance ( String receiver , String selector ) { try { Class receiverClass = Class . forName ( receiver ) ; Object target = receiverClass . newInstance ( ) ; Object res = null ; try { Method theMethod = getMethod ( receiverClass , selector , new Class [ 0 ] ) ; res = theMethod . invoke ( target , new Object [ 0 ] ) ; return new MethExecutorResult ( res ) ; } catch ( InvocationTargetException invTargEx ) { Throwable targEx = invTargEx . getTargetException ( ) ; if ( targEx == null ) { return new MethExecutorResult ( res ) ; } else { return new MethExecutorResult ( targEx ) ; } } } catch ( VirtualMachineError e ) { SystemFailure . initiateFailure ( e ) ; throw e ; } catch ( Throwable t ) { return new MethExecutorResult ( t ) ; } }
send the message " selector " to an instance of the class named " receiver " . return the result , including stack trace ( if any ) .
