static final public MessageHandler msg_handler_clause() throws ParseException {
                                       MessageHandler result; CreateActorStatement createStmt; SendMessageStatement sendStmt; ValueExpression pattern;
    jj_consume_token(ON);
    pattern = value_spec();
                                     result = new MessageHandler(pattern);
    jj_consume_token(LBRACE);
    label_7:
    while (true) {
      if (jj_2_8(4)) {
        ;
      } else {
        break label_7;
      }
      createStmt = create_actor_stmt();
                                                   result.getCreations().add(createStmt);
    }
    label_8:
    while (true) {
      if (jj_2_9(4)) {
        ;
      } else {
        break label_8;
      }
      sendStmt = msg_send_stmt();
                                      result.getSends().add(sendStmt);
    }
    if (jj_2_10(4)) {
      adopt_clause(result);
    } else {
      ;
    }
    jj_consume_token(RBRACE);
          {if (true) return result;}
    throw new Error("Missing return statement in function");
  }