docs: static void writeCertificates(final ModelNode result, final Certificate[] certificates) throws CertificateEncodingException, NoSuchAlgorithmException {
          if (certificates != null) {
              for (Certificate current : certificates) {
                  ModelNode certificate = new ModelNode();
                  writeCertificate(certificate, current);
                  result.add(certificate);
              }
          }
      }