code: @Override
      @FFDCIgnore({ EmptyRegistryException.class, NoSuchRegistryException.class })
      public void write() throws IOException {
          JSONObject payload = new JSONObject();
          for (String registryName : Constants.REGISTRY_NAMES_LIST) {
              try {
                  payload.put(registryName, getMetricsAsJson(registryName));
              } catch (NoSuchRegistryException e) { // Ignore
              } catch (EmptyRegistryException e) { // Ignore
              }
          }
          serialize(payload);
      }
docs: {@inheritDoc}