docs: private void listRegisteredHandlers(final HttpServletResponse response) throws IOException {
          //Build the array of registered roots
          JSONArray keyArray = new JSONArray();
          Iterator<String> keys = REST_HANDLER_CONTAINER.registeredKeys();
          if (keys != null) {
              while (keys.hasNext()) {
                  keyArray.add(keys.next());
              }
          }
  
          //Add the version.
          JSONObject jsonObject = new OrderedJSONObject();
          jsonObject.put("version", RESTHandlerContainer.REST_HANDLER_CONTAINER_VERSION);
          jsonObject.put("roots", keyArray);
  
          //The JSON library escapes forward slashes, but there's no need to in this case, so we unescape them.
          String serialized = jsonObject.serialize();
          response.setContentType("application/json");
          response.setCharacterEncoding("UTF-8");
          response.getWriter().write(serialized.replace("\\/", "/"));
      }