for (int i = 0; i < t.length; i++) {
if (t[i] instanceof OpenJPAException
&& ((OpenJPAException) t[i]).isFatal())
fatal = true;
}
OpenJPAException err;
if (datastore)
err = new StoreException(_loc.get("nested-exceps"));
else
err = new UserException(_loc.get("nested-exceps"));
throw err.setNestedThrowables(t).setFatal(fatal);
}