docs: @Override
      public <T> T getAttachment(final AttachmentKey<T> key) {
          if (key == null || attachments == null) {
              return null;
          }
          return (T) attachments.get(key);
      }