public void add(X509TrustManager mgr){
  if (mgr instanceof X509Extensions) {
    managers.add((X509Extensions)mgr);
  }
 else {
    managers.add(new X509ExtensionsWrapper(mgr));
  }
}

public void add ( X509TrustManager mgr ) { if ( mgr instanceof X509Extensions ) { managers . add ( ( X509Extensions ) mgr ) ; } else { managers . add ( new X509ExtensionsWrapper ( mgr ) ) ; } }
add an x509trustmanager to the ones being governed by this composite . ideally , this implements x509extensions . if not , it will be wrapped in an x509extensionswrapper , to try to call additional methods via reflection .
