code: @Override
      public void write(String registryName, String metricName) throws NoSuchMetricException, NoSuchRegistryException, IOException, EmptyRegistryException {
          StringBuilder builder = new StringBuilder();
          writeMetricsAsPrometheus(builder, registryName, metricName);
          serialize(builder);
      }
docs: {@inheritDoc}
  
  @throws EmptyRegistryException