Throwable t = e; // TODO: move Defense to sworddance
if (t instanceof TimeoutException || t instanceof ApplicationTimeoutException) {
if (returnNullIfTimeout) {
return null;
} else {
throw new ApplicationTimeoutException(e);
}
} else {
throw new ApplicationGeneralException(e); // throw rethrow(e);
}
}