@Override
    public <T> T unwrap(Class<T> clazz) {
        return Session.class.isAssignableFrom(clazz) ? clazz.cast(session) : null;
    }
@ Override public < T > T unwrap ( Class < T > clazz ) { return Session . class . isAssignableFrom ( clazz ) ? clazz . cast ( session ) : null ; }
{@link Session} is available.