public static X509CRLImpl toImpl(X509CRL crl) throws CRLException {
  if (crl instanceof X509CRLImpl) {
    return (X509CRLImpl)crl;
  }
 else {
    return X509Factory.intern(crl);
  }
}

public static X509CRLImpl toImpl ( X509CRL crl ) throws CRLException { if ( crl instanceof X509CRLImpl ) { return ( X509CRLImpl ) crl ; } else { return X509Factory . intern ( crl ) ; } }
utility method to convert an arbitrary instance of x509crl to a x509crlimpl . does a cast if possible , otherwise reparses the encoding .
