public IoSession getSession() throws RuntimeIOException {
Object v = getValue();
if (v instanceof RuntimeIOException) {
throw (RuntimeIOException) v;
} else if (v instanceof Throwable) {
throw (RuntimeIOException) new RuntimeIOException(
"Failed to get the session.").initCause((Throwable) v);
} else {
return (IoSession) v;
}
}