* @param arguments
   * @return boolean
   */
  public static boolean applyBooleanMethod(java.lang.reflect.Method code, Cons arguments) {
    switch (arguments.length()) {
      case 0: 
        throw ((StellaException)(StellaException.newStellaException("Can't call method code on 0 arguments.").fillInStackTrace()));
      case 1: 
        return (((Boolean)(edu.isi.stella.javalib.Native.funcall(code, arguments.value, new java.lang.Object []{}))).booleanValue());
      case 2: 
        return (((Boolean)(edu.isi.stella.javalib.Native.funcall(code, arguments.value, new java.lang.Object []{arguments.rest.value}))).booleanValue());
      case 3: 
        return (((Boolean)(edu.isi.stella.javalib.Native.funcall(code, arguments.value, new java.lang.Object []{arguments.rest.value, arguments.nth(2)}))).booleanValue());
      case 4: 
        return (((Boolean)(edu.isi.stella.javalib.Native.funcall(code, arguments.value, new java.lang.Object []{arguments.rest.value, arguments.nth(2), arguments.nth(3)}))).booleanValue());
      case 5: 
        return (((Boolean)(edu.isi.stella.javalib.Native.funcall(code, arguments.value, new java.lang.Object []{arguments.rest.value, arguments.nth(2), arguments.nth(3), arguments.nth(4)}))).booleanValue());
      default:
        throw ((StellaException)(StellaException.newStellaException("Too many function arguments in `apply'.  Max is 5.").fillInStackTrace()));
    }
  }