@ Override public < X > X session ( Class < X > type ) { String address = services ( ) . address ( type ) ; if ( address . startsWith ( "/" ) ) { address = "session://" + address ; } return sessionImpl ( address + "/" ) . as ( type ) ; }
Find the session by its service type .