* @param arity
   * @return java.lang.reflect.Method
   */
  public static java.lang.reflect.Method lookupNativeComputation(String nativeName, int arity) {
    { java.lang.reflect.Method code = null;

      int lastPeriod = nativeName.lastIndexOf('.');
    java.lang.Class [] classes = new java.lang.Class[arity];
    java.lang.Class sclass = Native.find_java_class("edu.isi.stella.Stella_Object");
    for (int i = 0; i < arity; i++) {
      classes[i] = sclass;
    }
    code = Native.find_java_method(nativeName.substring(0,lastPeriod),
                                   nativeName.substring(lastPeriod+1),
                                   classes)
;
      if (code == null) {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("Couldn't locate native function for `" + nativeName + "'");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
      return (code);
    }
  }