code: @Override
    public <X> X session(Class<X> type)
    {
      String address = services().address(type);
      
      if (address.startsWith("/")) {
        address = "session://" + address;
      }
  
      return sessionImpl(address + "/").as(type);
    }
docs: Find the session by its service type.
  
  If the session doesn't exist, create it.