func HandleRuntimeStats() http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		stats := GetRuntimeStats()
		services.Http_respond_json(w, r, stats)
		return
	})
}
func (proxy *IsolationProxy) HandleStats() http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		stats := proxy.Stats()
		services.Http_respond_json(w, r, stats)
		return
	})
}
func (catalog *Catalog) show_items(w http.ResponseWriter, r *http.Request) {
	if items, err := catalog.GetAllItems(); err != nil {
		services.Http_respond_error(w, r, "Error retrieving all items: "+err.Error(), http.StatusInternalServerError)
	} else {
		services.Http_respond_json(w, r, items)
	}
}
func (payments *Payments) show_payment(w http.ResponseWriter, r *http.Request) {
	if payment := payments.get_payment(w, r, false); payment != nil {
		services.Http_respond_json(w, r, payment)
	}
}
func (store *AccountStore) show_account(w http.ResponseWriter, r *http.Request) {
	if account := store.get_account(w, r); account != nil {
		services.Http_respond_json(w, r, account)
	}
}
func (store *AccountStore) show_transaction(w http.ResponseWriter, r *http.Request) {
	if trans := store.get_transaction(w, r); trans != nil {
		services.Http_respond_json(w, r, trans)
	}
}
func (store *AccountStore) show_stats(w http.ResponseWriter, r *http.Request) {
	stats := store.Stats()
	services.Http_respond_json(w, r, stats)
}
func (catalog *Catalog) show_shipment(w http.ResponseWriter, r *http.Request) {
	if shipment := catalog.get_shipment(w, r); shipment != nil {
		services.Http_respond_json(w, r, shipment)
	}
}
func (catalog *Catalog) show_item(w http.ResponseWriter, r *http.Request) {
	if item := catalog.get_item(w, r); item != nil {
		services.Http_respond_json(w, r, item)
	}
}