@NotNull
  public static TrustManager[] createTrustManagers(@NotNull String caCertPath) throws Exception {
    List<X509Certificate> certs = loadCertificates(caCertPath);
    List<TrustManager> result = new ArrayList<>(certs.size());
    for (X509Certificate cert : certs) {
      result.add(new MyTrustManager(cert));
    }

    return new TrustManager[]{new CompositeX509TrustManager(result.toArray(new TrustManager[0]))};
  }
@NotNull
  public static TrustManager[] createTrustManagers(@NotNull String caCertPath)