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