docs: @Override
      public Object getAttribute(String name) {
          if (isInvalid()) {
              throw new IllegalStateException("Session is invalid");
          }
          return this.attributes.get(name);
      }