}, isValid);
}
public static String unwrapException(Exception e) {
if (e instanceof J4pRemoteException) {
J4pRemoteException remoteException = (J4pRemoteException) e;
LOG.warn("Remote Exception " + remoteException.getMessage() + ". " + remoteException.getRemoteStackTrace());
}
Throwable cause = e;
if (e.getClass().equals(RuntimeException.class) || e instanceof UndeclaredThrowableException) {
cause = e.getCause();
}