119,130c119
<         } catch (java.lang.reflect.InvocationTargetException e) {
< 	    Throwable cause = e.getCause();
< 	    if (cause != null) {
< 		cause.printStackTrace();
< 		log.error("Unable to instantiate (1): " + cryptoClassName, cause);
< 	    }
< 	    else {
< 		e.printStackTrace();
< 		log.error("Unable to instantiate (1): " + cryptoClassName, e);
< 	    }
< 	}
<         catch (java.lang.Exception e) {
---
>         } catch (java.lang.Exception e) {
139,148c128,130
< 	    Throwable cause = e.getCause();
< 	    if (cause != null) {
< 		cause.printStackTrace();
< 		log.error("Unable to instantiate (2): " + cryptoClassName, cause);
< 	    }
< 	    else {
< 		e.printStackTrace();
< 		log.error("Unable to instantiate (2): " + cryptoClassName, e);
< 	    }
< 	    throw new RuntimeException(cryptoClassName + " cannot create instance");
---
>             e.printStackTrace();
>             log.error("Unable to instantiate (2): " + cryptoClassName, e);
>             throw new RuntimeException(cryptoClassName + " cannot create instance");
