if (throwables != null && !throwables.isEmpty()) {
//we don't have the ability to return all errors. so return the
//first one, enough to signal the problem.
String msg = throwables.get(0).getMessage();
Exception ex = new Exception(msg);
ex.initCause(throwables.get(0));
throw ex;
} else {
return true;
}