}
} catch (Exception e) {
Throwable cause = e.getCause();
if (cause instanceof EjbcaException_Exception) {
EjbcaException_Exception ejbcaex = (EjbcaException_Exception)cause;
EjbcaException ee = ejbcaex.getFaultInfo();
System.out.println("Error: "+ee.getErrorCode().getInternalErrorCode()+": "+ee.getMessage());
} else {
System.out.println(e.getMessage());
}
e.printStackTrace();
System.exit(-1); // NOPMD, this is not a JEE app