*/
private static void unwrapException(RedmineException exception, String tag) throws IOException {
Throwable e = exception;
while (e != null) {
if (e instanceof MarkedIOException) {
final MarkedIOException marked = (MarkedIOException) e;
if (tag.equals(marked.getTag()))
throw marked.getIOException();
}
e = e.getCause();
}
}