docs: private static void addX509Managers(final Collection<X509TrustManager> managers, KeyStore ks)
  			throws KeyStoreException, Error {
  		try {
  			final TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
  			tmf.init(ks);
  			for (TrustManager tm : tmf.getTrustManagers()) {
  				if (tm instanceof X509TrustManager) {
  					managers.add((X509TrustManager) tm);
  				}
  			}
  		} catch (NoSuchAlgorithmException e) {
  			throw new Error("Default trust manager algorithm is not supported!", e);
  		}
  	}