public static X509CRLEntryImpl toImpl(X509CRLEntry entry) throws CRLException {
  if (entry instanceof X509CRLEntryImpl) {
    return (X509CRLEntryImpl)entry;
  }
 else {
    return new X509CRLEntryImpl(entry.getEncoded());
  }
}

public static X509CRLEntryImpl toImpl ( X509CRLEntry entry ) throws CRLException { if ( entry instanceof X509CRLEntryImpl ) { return ( X509CRLEntryImpl ) entry ; } else { return new X509CRLEntryImpl ( entry . getEncoded ( ) ) ; } }
utility method to convert an arbitrary instance of x509crlentry to a x509crlentryimpl . does a cast if possible , otherwise reparses the encoding .
