[java] Rethrowing exceptions in Java without losing the stack trace